public static interface DOFSubscription.Listener
Modifier and Type | Method and Description |
---|---|
void |
propertyChanged(DOFSubscription subscription,
DOFObjectID providerID,
DOFValue value)
Process a value update.
|
void |
removed(DOFSubscription subscription,
DOFException exception)
Called when the Listener is removed from the DOFSubscription.
|
void |
stateChanged(DOFSubscription subscription,
DOFSubscription.State state)
Indicates to the application that the subscription state has changed.
|
void propertyChanged(DOFSubscription subscription, DOFObjectID providerID, DOFValue value)
DOFSubscription.DOFSubscription(org.opendof.core.oal.DOFSystem, org.opendof.core.oal.DOFQuery, org.opendof.core.oal.DOFInterface.Property, int, org.opendof.core.oal.DOFOperation.Control, org.opendof.core.oal.DOFSubscription.Listener, java.lang.Object)
:subscription
- The DOFSubscription where this listener was added. This will never be null.providerID
- The provider's ID.
DOFObjectID.BROADCAST
.value
- The new value.void stateChanged(DOFSubscription subscription, DOFSubscription.State state)
subscription
- The DOFSubscription where this listener was added. This will never be null.state
- The new state of the subscription.void removed(DOFSubscription subscription, DOFException exception)
propertyChanged(org.opendof.core.oal.DOFSubscription, org.opendof.core.oal.DOFObjectID, org.opendof.core.oal.DOFValue)
callback will not be called after the listener is removed.subscription
- The DOFSubscription 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.