Kanzi Connect  3.9.9
Kanzi Connect C++ API
kanzi::connect::RPCCallStoreImpl< _T > Class Template Reference

#include <rpcresult.hpp>

Public Member Functions

void completeLinkBroken ()
 Completes RPC calls with link broken status. More...
 
void completeTimedOut (const chrono::steady_clock::time_point &now)
 Completes timed out object (or otherwise discarded, objects. More...
 
bool contains (RPCTypes::CommHandle handle)
 Determines whether this particular object exists in the store. More...
 
shared_ptr< _T > get (RPCTypes::CommHandle handle)
 Retrieve object from store. More...
 
void put (shared_ptr< _T > item)
 Inserts item into the callstore. More...
 
 RPCCallStoreImpl (recursive_mutex &mutex)
 Constructor. More...
 

Constructor & Destructor Documentation

◆ RPCCallStoreImpl()

template<class _T>
kanzi::connect::RPCCallStoreImpl< _T >::RPCCallStoreImpl ( recursive_mutex &  mutex)
inline

Constructor.

Parameters
mutexmutex to guard the internal structures.

Member Function Documentation

◆ completeLinkBroken()

template<class _T>
void kanzi::connect::RPCCallStoreImpl< _T >::completeLinkBroken ( )

Completes RPC calls with link broken status.

◆ completeTimedOut()

template<class _T>
void kanzi::connect::RPCCallStoreImpl< _T >::completeTimedOut ( const chrono::steady_clock::time_point &  now)

Completes timed out object (or otherwise discarded, objects.

Parameters
nowthe current timestamp

◆ contains()

template<class _T>
bool kanzi::connect::RPCCallStoreImpl< _T >::contains ( RPCTypes::CommHandle  handle)

Determines whether this particular object exists in the store.

Parameters
handlethe handle of operation
Returns
true if object is held, false otherwise.

◆ get()

template<class _T>
shared_ptr<_T> kanzi::connect::RPCCallStoreImpl< _T >::get ( RPCTypes::CommHandle  handle)
inline

Retrieve object from store.

Parameters
handleidenfier of the object to retrieve.
Returns
shared pointer to object.

◆ put()

template<class _T>
void kanzi::connect::RPCCallStoreImpl< _T >::put ( shared_ptr< _T >  item)
inline

Inserts item into the callstore.

Parameters
itemto insert. Saved as weak pointer thus pointer can get destroyed while in store.

The documentation for this class was generated from the following file: