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 TypeMethodDescriptionvoidClose()Close channel streamsvoidOpen()Opens the channel, by invoking the checkPort method.protected static voidsetMaxRetries(int maxRetries) set the max number of attempts if the client is unable to connect to the serverprotected static voidsetRetryDelayMs(int retryDelayMs) set the time interval between connection attemptsstatic voidsetTimeoutMs(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_AbstractionClose channel streams- Overrides:
Closein classChannel_Abstraction
-
Open
public void Open()Description copied from class:Channel_AbstractionOpens the channel, by invoking the checkPort method.- Overrides:
Openin 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
-