nl:: Weave:: Profiles:: DataManagement_Current:: SubscriptionEngine
#include <src/lib/profiles/data-management/Current/SubscriptionEngine.h>
This is a singleton hosting all WDM Next subscriptions, both client and publisher sides.
Summary
Constructors and Destructors |
|
---|---|
SubscriptionEngine(void)
|
Public types |
|
---|---|
EventCallback)(void *const aAppState, EventID aEvent, const InEventParam &aInParam, OutEventParam &aOutParam)
|
typedefvoid(*
Set the event back function and pointer to associated state object for SubscriptionEngine specific call backs. |
EventID
|
enum Events generated directly from this component. |
Public static functions |
|
---|---|
DefaultEventHandler(EventID aEvent, const InEventParam & aInParam, OutEventParam & aOutParam)
|
void
This is the default event handler to be called by application layer for any ignored or unrecognized event.
|
GetInstance(void)
|
Retrieve the singleton Subscription Engine.
|
Public functions |
|
---|---|
GetExchangeManager(void) const
|
|
GetMinEventLogPosition(size_t & outLogPosition) const
|
Retrieve the minimum relative position of the event offload point from all active subscription handlers.
|
Init(nl::Weave::WeaveExchangeManager *const apExchangeMgr, void *const aAppState, const EventCallback aEventCallback)
|
|
SetEventCallback(void *const aAppState, const EventCallback aEventCallback)
|
void
Set the event back function and pointer to associated state object for SubscriptionEngine specific call backs.
|
Unions |
|
---|---|
nl:: |
Incoming parameters sent with events generated directly from this component. |
nl:: |
Outgoing parameters sent with events generated directly from this component. |
Public types
EventCallback
void(* EventCallback)(void *const aAppState, EventID aEvent, const InEventParam &aInParam, OutEventParam &aOutParam)
Set the event back function and pointer to associated state object for SubscriptionEngine specific call backs.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
EventID
EventID
Events generated directly from this component.
Public static functions
DefaultEventHandler
void DefaultEventHandler( EventID aEvent, const InEventParam & aInParam, OutEventParam & aOutParam )
This is the default event handler to be called by application layer for any ignored or unrecognized event.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
GetInstance
SubscriptionEngine * GetInstance( void )
Retrieve the singleton Subscription Engine.
Note this function should be implemented by the adoption layer.
Details | |
---|---|
Returns |
A pointer to the shared Subscription Engine
|
Public functions
GetExchangeManager
nl::Weave::WeaveExchangeManager * GetExchangeManager( void ) const
GetMinEventLogPosition
WEAVE_ERROR GetMinEventLogPosition( size_t & outLogPosition ) const
Retrieve the minimum relative position of the event offload point from all active subscription handlers.
Retrieves the minimum relative (to the boottime) position of the event offload point from all active subscription handlers.
Details | |||
---|---|---|---|
Parameters |
|
||
Return Values |
|
Init
WEAVE_ERROR Init( nl::Weave::WeaveExchangeManager *const apExchangeMgr, void *const aAppState, const EventCallback aEventCallback )
SetEventCallback
void SetEventCallback( void *const aAppState, const EventCallback aEventCallback )
Set the event back function and pointer to associated state object for SubscriptionEngine specific call backs.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
SubscriptionEngine
SubscriptionEngine( void )