Interface PeerDiscoveryThread.ConnectionHandler

Enclosing class:
PeerDiscoveryThread
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 PeerDiscoveryThread.ConnectionHandler
Defines a callback for objects wishing to be notified of discovery events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onNewConnection(String name, org.jppf.comm.discovery.JPPFConnectionInformation info)
    Called when a new connection is discovered.
  • Method Details

    • onNewConnection

      void onNewConnection(String name, org.jppf.comm.discovery.JPPFConnectionInformation info)
      Called when a new connection is discovered.
      Parameters:
      name - the name assigned to the connection.
      info - the information required to connect to the driver.