Package anbxj

Class Channel_Client


public class Channel_Client extends Channel_Abstraction
Client Channel
  • Constructor Details

    • Channel_Client

      public Channel_Client(Channel_Properties cp)
      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 class Channel_Abstraction
    • Open

      public void Open()
      Description copied from class: Channel_Abstraction
      Opens the channel, by invoking the checkPort method.
      Overrides:
      Open in class Channel_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