javax.jmdns.impl
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
public class ListenerStatus<T extends EventListener>
- extends Object
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.
SYNCHONEOUS
public static final boolean SYNCHONEOUS
- See Also:
- Constant Field Values
ASYNCHONEOUS
public static final boolean ASYNCHONEOUS
- See Also:
- Constant Field Values
ListenerStatus
public ListenerStatus(T listener,
boolean synch)
- Parameters:
listener
- listener being tracked.synch
- true if that listener can be called asynchronously
getListener
public T getListener()
- Returns:
- the listener
isSynchronous
public boolean isSynchronous()
- Return true if the listener must be called synchronously.
- Returns:
- the synch
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2011 JmDNS. All Rights Reserved.