Interface DiscoveryListener

  • All Known Implementing Classes:
    DiscoveryProvider

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

      • onServiceAdd

        void onServiceAdd​(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​(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.