Public Member Functions | Package Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus Class Reference

List of all members.

Public Member Functions

 ServiceListenerStatus (ServiceListener listener, boolean synch)
String toString ()

Package Functions

void serviceAdded (ServiceEvent event)
void serviceRemoved (ServiceEvent event)
synchronized void serviceResolved (ServiceEvent event)

Static Private Member Functions

static final boolean _sameInfo (ServiceInfo info, ServiceInfo lastInfo)

Private Attributes

final ConcurrentMap< String,
ServiceInfo
_addedServices

Static Private Attributes

static Logger logger = Logger.getLogger(ServiceListenerStatus.class.getName())

Detailed Description

Definition at line 26 of file ListenerStatus.java.


Constructor & Destructor Documentation

javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus.ServiceListenerStatus ( ServiceListener  listener,
boolean  synch 
) [inline]
Parameters:
listenerlistener being tracked.
synchtrue if that listener can be called asynchronously

Definition at line 37 of file ListenerStatus.java.


Member Function Documentation

static final boolean javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus._sameInfo ( ServiceInfo  info,
ServiceInfo  lastInfo 
) [inline, static, private]

Definition at line 116 of file ListenerStatus.java.

void javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus.serviceAdded ( ServiceEvent  event) [inline, package]

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:
eventThe ServiceEvent providing the name and fully qualified type of the service.

Definition at line 57 of file ListenerStatus.java.

void javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus.serviceRemoved ( ServiceEvent  event) [inline, package]

A service has been removed.

Parameters:
eventThe ServiceEvent providing the name and fully qualified type of the service.

Definition at line 76 of file ListenerStatus.java.

synchronized void javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus.serviceResolved ( ServiceEvent  event) [inline, package]

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:
eventThe ServiceEvent providing the name, the fully qualified type of the service, and the service info record.

Definition at line 92 of file ListenerStatus.java.

String javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus.toString ( ) [inline]

Definition at line 134 of file ListenerStatus.java.


Member Data Documentation

final ConcurrentMap<String, ServiceInfo> javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus._addedServices [private]

Definition at line 29 of file ListenerStatus.java.

Logger javax.jmdns.impl.ListenerStatus< T extends EventListener >.ServiceListenerStatus.logger = Logger.getLogger(ServiceListenerStatus.class.getName()) [static, private]

Definition at line 27 of file ListenerStatus.java.


The documentation for this class was generated from the following file:


zeroconf_jmdns_suite
Author(s): Daniel Stonier
autogenerated on Thu Aug 27 2015 15:50:27