Interface ServiceListener


public interface ServiceListener
ServiceListener is the interface for listeners of service availability and removal.
Author:
tap
  • Method Details

    • serviceAdded

      void serviceAdded(ServiceDirectory directory, ServiceRef serviceRef)
      This method is called when a new service has been added.
      Parameters:
      directory - identifies the directory sending this notification
      serviceRef - The service reference of service provided.
    • serviceRemoved

      void serviceRemoved(ServiceDirectory directory, String type, String name)
      This method is called when a service has been removed.
      Parameters:
      directory - identifies the directory sending this notification
      type - The type of the removed service.
      name - The name of the removed service.