This class maintains a subscription.
Inheritance Hierarchy
org.opendof.core.oalDOFSubscription
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public sealed class DOFSubscription
The DOFSubscription type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | addListener | Add a listener that will receive an update every time the subscribed property changes.
|
![]() | destroy | Destroy the DOFSubscription. |
![]() | Equals | (Inherited from Object.) |
![]() | getContext | |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | getMinPeriod | |
![]() | getObjectID | |
![]() | getProperty | |
![]() | getQuery | |
![]() | getState | |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | removeListener | Remove a previously added listener. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
- Unicast - Use a specific DOFObjectID to subscribe to just one provider. The subscribe operation is not flooded. Interest is required because this case uses an internal query to find the provider.
- Multicast - Use DOFObjectID.BROADCAST to subscribe to all providers of the specified DOFInterface . The subscribe operation is flooded. Interest is not required because no internal query is used.
- Query - Use a DOFQuery to specify what to subscribe to. Only one subscription is maintained at a time.
See Also