public static interface DOFRegistration.Listener
Modifier and Type | Method and Description |
---|---|
void |
eventSignaled(DOFRegistration registration,
DOFObjectID providerID,
java.util.List<DOFValue> values)
Process an event.
|
void |
removed(DOFRegistration registration,
DOFException exception)
Called when the Listener is removed from the DOFRegistration.
|
void |
stateChanged(DOFRegistration registration,
DOFRegistration.State state)
Indicates to the application that the registration state has changed.
|
void eventSignaled(DOFRegistration registration, DOFObjectID providerID, java.util.List<DOFValue> values)
DOFRegistration.DOFRegistration(org.opendof.core.oal.DOFSystem, org.opendof.core.oal.DOFQuery, org.opendof.core.oal.DOFInterface.Event, org.opendof.core.oal.DOFOperation.Control, org.opendof.core.oal.DOFRegistration.Listener, java.lang.Object)
:registration
- The DOFRegistration where this listener was added. This will never be null.providerID
- The provider's ID.
DOFObjectID.BROADCAST
.values
- The value(s) associated with the event.void stateChanged(DOFRegistration registration, DOFRegistration.State state)
registration
- The DOFRegistration where this listener was added. This will never be null.state
- The new state of the registration.void removed(DOFRegistration registration, DOFException exception)
eventSignaled(org.opendof.core.oal.DOFRegistration, org.opendof.core.oal.DOFObjectID, java.util.List<org.opendof.core.oal.DOFValue>)
callback will not be called after the listener is removed.registration
- The DOFRegistration where this listener was added. This will never be null.exception
- An exception that caused the listener to be removed prematurely. This will be null if the application removed the listener normally.