Interface DiscoveryListener

  • All Known Implementing Classes:
    DiscoveryProvider

    public interface DiscoveryListener
    A listener of services being added or removed from a network
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onServiceAdd​(java.net.URI remoteURI)
      Called when a DiscoveryAgent becomes aware of a new remote peer.
      void onServiceRemove​(java.net.URI remoteURI)
      Called when a DiscoveryAgent can no longer detect a previously known remote peer.
    • Method Detail

      • onServiceAdd

        void onServiceAdd​(java.net.URI remoteURI)
        Called when a DiscoveryAgent becomes aware of a new remote peer.
        Parameters:
        remoteURI - the URI of the newly discovered peer.
      • onServiceRemove

        void onServiceRemove​(java.net.URI remoteURI)
        Called when a DiscoveryAgent can no longer detect a previously known remote peer.
        Parameters:
        remoteURI - the URI of the previously discovered peer that is no longer active.