Public Member Functions | |
void | serviceAdded (ServiceEvent event) |
void | serviceRemoved (ServiceEvent event) |
void | serviceResolved (ServiceEvent event) |
Listener for service updates.
Definition at line 14 of file ServiceListener.java.
void javax.jmdns.ServiceListener.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.
event | The ServiceEvent providing the name and fully qualified type of the service. |
Implemented in javax.jmdns.impl.JmDNSImpl.ServiceCollector, com.github.rosjava.zeroconf_jmdns_suite.jmdns.Zeroconf, and ros.zeroconf.jmdns.BrowserOriginal.
void javax.jmdns.ServiceListener.serviceRemoved | ( | ServiceEvent | event | ) |
A service has been removed.
event | The ServiceEvent providing the name and fully qualified type of the service. |
Implemented in javax.jmdns.impl.JmDNSImpl.ServiceCollector, com.github.rosjava.zeroconf_jmdns_suite.jmdns.Zeroconf, and ros.zeroconf.jmdns.BrowserOriginal.
void javax.jmdns.ServiceListener.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.
event | The ServiceEvent providing the name, the fully qualified type of the service, and the service info record. |
Implemented in javax.jmdns.impl.JmDNSImpl.ServiceCollector, com.github.rosjava.zeroconf_jmdns_suite.jmdns.Zeroconf, and ros.zeroconf.jmdns.BrowserOriginal.