Interface Client2Notification.ConnectionStatus

Enclosing class:
Client2Notification
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Client2Notification.ConnectionStatus
Notification of connection status change.

This is used for connect failure, connection up, and connection down events. The three types of events are are handled by separate notifiers, but use a common structure for notifications.

The affected server is identified by host (name or IP address) and TCP port number.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(String host, int port)
    Indicates a change in connection status for the identified server.
  • Method Details

    • accept

      void accept(String host, int port)
      Indicates a change in connection status for the identified server.
      Parameters:
      host - host name or IP address
      port - TCP port number