org.avineas.io.notify
public class CompoundNotifier extends java.lang.Object
Notifier
interface.Constructor and Description |
---|
CompoundNotifier()
Construct a compound notifier that is able to let listeners know that something
happened to a channel.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Notifier.Listener toNotify)
Add a listener to notify.
|
void |
destroy()
Method that must be called when this notifier is destroyed since it terminates
the thread that performs the notification actions.
|
void |
notifyChilds()
Method that can be used by external holders of this type of
notifier to notify asynchronously the listeners to this
notifier.
|
void |
remove(Notifier.Listener toNotify)
Remove an existing listener.
|
public CompoundNotifier()
public void add(Notifier.Listener toNotify)
toNotify
- The listener to notifypublic void remove(Notifier.Listener toNotify)
toNotify
- The listener to removepublic void notifyChilds()
@PreDestroy public void destroy()