public final class DOFRegistration
extends java.lang.Object
DOFObjectID to register for just one provider.
The register operation is not flooded.
Interest is required because this case uses an internal query to find the provider.DOFObjectID.BROADCAST to register for all providers of the specified DOFInterface.
The register operation is flooded.
Interest is not required because no internal query is used.DOFQuery to specify what to register for. Only one event registration is maintained at a time.| Modifier and Type | Class and Description |
|---|---|
static interface |
DOFRegistration.Listener
This interface is implemented by requestors to receive updates.
|
static class |
DOFRegistration.State
This is a snapshot of the DOFRegistration's state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DOFRegistration.Listener listener)
Add a listener that will receive an update every time the registered event is signaled.
|
void |
destroy()
Destroy the DOFRegistration.
|
java.lang.Object |
getContext() |
DOFInterface.Event |
getEvent() |
DOFObjectID |
getObjectID() |
DOFQuery |
getQuery() |
DOFRegistration.State |
getState() |
void |
removeListener(DOFRegistration.Listener listener)
Remove a previously added listener.
|
public void destroy()
DOFRegistration.Listeners will not be called once this method returns.public DOFRegistration.State getState()
public DOFObjectID getObjectID()
public DOFQuery getQuery()
public DOFInterface.Event getEvent()
public java.lang.Object getContext()
public void addListener(DOFRegistration.Listener listener)
listener - The listener to add.public void removeListener(DOFRegistration.Listener listener)
listener - The listener to remove.