Class ListenerStatus<T extends EventListener>
java.lang.Object
javax.jmdns.impl.ListenerStatus<T>
- Type Parameters:
T- listener type
- Direct Known Subclasses:
ListenerStatus.ServiceListenerStatus, ListenerStatus.ServiceTypeListenerStatus
This class track the status of listener.
The main purpose of this class is to collapse consecutive events so that we can guarantee the correct call back sequence.
The main purpose of this class is to collapse consecutive events so that we can guarantee the correct call back sequence.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Tprivate final booleanstatic final booleanstatic final boolean -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SYNCHRONOUS
public static final boolean SYNCHRONOUS- See Also:
-
ASYNCHRONOUS
public static final boolean ASYNCHRONOUS- See Also:
-
_listener
-
_synch
private final boolean _synch
-
-
Constructor Details
-
ListenerStatus
- Parameters:
listener- listener being tracked.synch- true if that listener can be called asynchronously
-
-
Method Details
-
getListener
- Returns:
- the listener
-
isSynchronous
public boolean isSynchronous()Returntrue if the listener must be called synchronously. - Returns:
- the synch
-
hashCode
-
equals
-
toString
-