Used by a Requestor to begin and maintain a subscription, as specified using a context, to be notified of changes to a
property's value.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public DOFSubscription createSubscription( DOFObjectID oid, DOFInterfaceProperty property, int minPeriod, DOFSubscriptionListener listener )
Parameters
- oid
- Type: org.opendof.core.oalDOFObjectID
The identifier of the object. This must not be null. May be DOFObjectID.BROADCAST. - property
- Type: org.opendof.core.oalDOFInterfaceProperty
The property. Must not be null. - minPeriod
- Type: SystemInt32
The minimum time, in milliseconds, that should elapse between property update notifications. Must be >= 0. - listener
- Type: org.opendof.core.oalDOFSubscriptionListener
Listener to receive state-changed and value-changed notifications. Should not be null (or notifications cannot be received).
Return Value
Type: DOFSubscriptionThe DOFSubscription that may be used to destroy the subscription. Will not be null.
Exceptions
Exception | Condition |
---|---|
DOFErrorException |
If parameters fail validation. Exception errorCode is:
|
DOFErrorException |
Remarks
See Also