class SubscriptionClient
Defined at line 63 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
Public Methods
void DefaultEventHandler (EventIDaEvent,const InEventParam &aInParam,OutEventParam &aOutParam)
void DefaultResubscribePolicyCallback (void *constaAppState,ResubscribeParam &aInParam,uint32_t &aOutIntervalMsec)
void InitiateSubscription ()
void InitiateCounterSubscription (const uint32_t aLivenessTimeoutSec)
Binding * GetBinding ()
uint64_t GetPeerNodeId ()
WEAVE_ERROR EndSubscription ()
End the subscription.
When #WDM_ENABLE_SUBSCRIPTION_CANCEL compile-time option is enabled,
gracefully end the subscription by sending a CancelRequest to the peer.
The resources associated with the subscription are freed on response
from the peer or on timeout. When the option is disabled, the call is
equivalent to AbortSubscription().
void AbortSubscription ()
Abort the subscription.
Immediately stop accepting all traffic associated with the subscription,
and release all underlying communication resources. The
SubscriptionClient object itself remains valid and may be used again.
void Free ()
Free this SubscriptionClient object.
Calls AbortSubscription() if necessary and releases the refcount on this
SubscriptionClient object. Under correct usage, this should enable the
object to be returned to the object pool
WEAVE_ERROR GetSubscriptionId (uint64_t *const apSubscriptionId)
void EnableResubscribe (ResubscribePolicyCallback aCallback)
void DisableResubscribe ()
uint32_t GetLivenessTimeoutMsec ()
Defined at line 363 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
void ResetResubscribe ()
void IndicateActivity ()
void SetLivenessTimeoutMsec (uint32_t val)
Defined at line 364 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
bool IsInProgressOrEstablished ()
Defined at line 370 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
bool IsRetryEnabled ()
Defined at line 375 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
bool IsEstablished ()
Defined at line 377 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
bool IsEstablishedIdle ()
Defined at line 378 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
bool IsFree ()
Defined at line 379 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
bool IsCanceling ()
Defined at line 380 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
bool IsTerminated ()
Defined at line 381 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
bool IsInResubscribeHoldoff ()
Defined at line 382 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
Enumerations
enum (unnamed)
| Name | Value | Comments |
|---|---|---|
| kNoTimeOut | 0 | -- |
| kMaxTimeoutSec | 3600000 |
Note the WDM spec says 0x7FFFFFFF, but Weave implementation can only hold timeout of much shorter |
Defined at line 66 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
enum EventID
| Name | Value | Comments |
|---|---|---|
| kEvent_OnSubscriptionTerminated | 1 |
Marks the end of this subscription. The parameters sent to the
During the event handler call, the state of the client will be `Terminated`.
The application may call AbortSubscription() or Free() in this state.
The parameters sent will also include an error code indicating the
The subscription could have been terminated for a number of reasons
|Error code | Meaning | |
| kEvent_OnExchangeStart | 2 |
Generated after the binding has been prepared and ExchangeContext has |
| kEvent_OnSubscribeRequestPrepareNeeded | 3 |
Sent when the engine is ready to send the SubscribeRequest. The |
| kEvent_OnSubscriptionEstablished | 4 |
Generated upon a successful establishment of the subscription. The |
| kEvent_OnNotificationRequest | 5 |
Generated on a receit of a NotificationRequest. The application may |
| kEvent_OnNotificationProcessed | 6 |
Generated when the SubscriptionEngine finishes proceesing a |
| kEvent_OnEventStreamReceived | 7 |
Generated when the SubscriptionEngine encountes an event stream |
| kEvent_OnSubscriptionActivity | 8 |
An event indicating subscription activity. It is generated whenever |
Defined at line 75 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/SubscriptionClient.h
Records
Friends
class UpdateEncoder
class UpdateDictionaryDirtyPathCut
class UpdateDirtyPathFilter
class TraitSchemaEngine
class TraitDataSink
class MockWdmSubscriptionInitiatorImpl
class WdmUpdateServerTest
class WdmUpdateEncoderTest
class TestWdm
class TestTdm
class SubscriptionEngine