JmDNS 3.4.1

javax.jmdns
Interface ServiceListener

All Superinterfaces:
EventListener

public interface ServiceListener
extends EventListener

Listener for service updates.

Author:
Arthur van Hoff, Werner Randelshofer, Pierre Frisch

Method Summary
 void serviceAdded(ServiceEvent event)
          A service has been added.
Note:This event is only the service added event.
 void serviceRemoved(ServiceEvent event)
          A service has been removed.
 void serviceResolved(ServiceEvent event)
          A service has been resolved.
 

Method Detail

serviceAdded

void serviceAdded(ServiceEvent event)
A service has been added.
Note:This event is only the service added event. The service info associated with this event does not include resolution information.
To get the full resolved information you need to listen to serviceResolved(ServiceEvent) or call JmDNS.getServiceInfo(String, String, long)
  ServiceInfo info = event.getDNS().getServiceInfo(event.getType(), event.getName())
 

Please note that service resolution may take a few second to resolve.

Parameters:
event - The ServiceEvent providing the name and fully qualified type of the service.

serviceRemoved

void serviceRemoved(ServiceEvent event)
A service has been removed.

Parameters:
event - The ServiceEvent providing the name and fully qualified type of the service.

serviceResolved

void serviceResolved(ServiceEvent event)
A service has been resolved. Its details are now available in the ServiceInfo record.
Note:This call back will never be called if the service does not resolve.

Parameters:
event - The ServiceEvent providing the name, the fully qualified type of the service, and the service info record.

Last updated 2011-08-25 12:40

Copyright © 2002-2011 JmDNS. All Rights Reserved.