Package anbxj
Class Channel_Client
java.lang.Object
anbxj.Channel_Abstraction
anbxj.Channel_Client
Client Channel
-
Field Summary
Fields inherited from class anbxj.Channel_Abstraction
cp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Close()
Close channel streamsvoid
Open()
Opens the channel, by invoking the checkPort method.protected static void
setMaxRetries
(int maxRetries) set the max number of attempts if the client is unable to connect to the serverprotected static void
setRetryDelayMs
(int retryDelayMs) set the time interval between connection attemptsstatic void
setTimeoutMs
(int timeoutMs) Set the channel timeoutMethods inherited from class anbxj.Channel_Abstraction
checkPort, getChannelRole, OpenStreams, Receive, Receive, safeReadObject, Send
-
Constructor Details
-
Channel_Client
create a channel client- Parameters:
cp
- the channel properties
-
-
Method Details
-
Close
public void Close()Description copied from class:Channel_Abstraction
Close channel streams- Overrides:
Close
in classChannel_Abstraction
-
Open
public void Open()Description copied from class:Channel_Abstraction
Opens the channel, by invoking the checkPort method.- Overrides:
Open
in classChannel_Abstraction
-
setTimeoutMs
public static void setTimeoutMs(int timeoutMs) Set the channel timeout- Parameters:
timeoutMs
- the timeout in milliseconds
-
setMaxRetries
protected static void setMaxRetries(int maxRetries) set the max number of attempts if the client is unable to connect to the server- Parameters:
maxRetries
- the number of attemps
-
setRetryDelayMs
protected static void setRetryDelayMs(int retryDelayMs) set the time interval between connection attempts- Parameters:
retryDelayMs
- the the time interval in milliseconds
-