Interface ClientConnectionStatusHandler

All Known Subinterfaces:
JPPFClientConnection
All Known Implementing Classes:
AbstractChannelWrapperRemote, ChannelWrapperLocal, ChannelWrapperRemoteAsync, JPPFClientConnectionImpl

public interface ClientConnectionStatusHandler
Interface implemented by all classes that desire to handle a connection status and notify others about status changes.
Author:
Laurent Cohen
  • Method Details

    • getStatus

      Get the status of this connection.
      Returns:
      a JPPFClientConnectionStatus enumerated value.
    • setStatus

      void setStatus(JPPFClientConnectionStatus status)
      Set the status of this connection.
      Parameters:
      status - a JPPFClientConnectionStatus enumerated value.
    • addClientConnectionStatusListener

      void addClientConnectionStatusListener(ClientConnectionStatusListener listener)
      Add a connection status listener to this connection's list of listeners.
      Parameters:
      listener - the listener to add to the list.
    • removeClientConnectionStatusListener

      void removeClientConnectionStatusListener(ClientConnectionStatusListener listener)
      Remove a connection status listener from this connection's list of listeners.
      Parameters:
      listener - the listener to remove from the list.