Class ConnectionStatus

java.lang.Object
com.highdeal.cnd.message.ConnectionStatus

public class ConnectionStatus extends Object
The class contains the connection status information after a connect method is called (e.g. AsyncRatingServiceClient.connect(String, int)).
  • Constructor Details

    • ConnectionStatus

      public ConnectionStatus(com.highdeal.barbus.Client registeredClient)
      Parameters:
      registeredClient - the registered Client (can be null)
  • Method Details

    • isServiceAvailable

      public boolean isServiceAvailable()
      Gets the service availability status. The service is not available when no dispatcher has succeeded to register the client (e.g. authentication failed).
      Returns:
      true if the service is available, false otherwise.
    • getServicePort

      public int getServicePort()
      Gets the port of the service.
      Returns:
      the port of the service if it is available, 0 otherwise