public class UpdateableSubscriptionManager
extends java.lang.Object
Constructor and Description |
---|
UpdateableSubscriptionManager(IManagedUpdateable source)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
enqueue()
Sets the manager in queue mode.
|
void |
flushQueue()
Exit queue mode, sending all queued messages to listeners.
|
void |
notifyListeners(SubscriptionType[] eventTypes)
Broadcast a message to all listeners subscribed to the given message
types.
|
void |
register(IManagedUpdateableListener listener)
Register a listener to receive updates from the given lift of event
types.
|
void |
removeMesaage(SubscriptionType type)
Remove a pending message from the manager.
|
void |
setParent(UpdateableSubscriptionManager parent)
Setter method for the manager's parent.
|
void |
unregister(IManagedUpdateableListener listener)
Unregister a listener so that it will receive no new updates.
|
public UpdateableSubscriptionManager(IManagedUpdateable source)
source
- The object whose listeners this manager will control
communications for.public void enqueue()
public void flushQueue()
public void notifyListeners(SubscriptionType[] eventTypes)
eventTypes
- The list of types of messages which are being sent. A listener
will be notified if it is subscribed for a type in eventTypes
or if it is subscribed for UpdateableSubscriptionType.ALL.public void register(IManagedUpdateableListener listener)
listener
- The listener which is being registeredtypes
- The list of event types the listener will receivepublic void removeMesaage(SubscriptionType type)
public void setParent(UpdateableSubscriptionManager parent)
parent
- The manager's new parentpublic void unregister(IManagedUpdateableListener listener)
listener
- The listener to be unregistered