client-cpp  0.10.0
kaa::SimpleExecutorContext Class Reference

#include <SimpleExecutorContext.hpp>

+ Inheritance diagram for kaa::SimpleExecutorContext:
+ Collaboration diagram for kaa::SimpleExecutorContext:

Public Member Functions

 SimpleExecutorContext (std::size_t lifeCycleThreadCount=DEFAULT_THREAD_COUNT, std::size_t apiThreadCount=DEFAULT_THREAD_COUNT, std::size_t callbackThreadCount=DEFAULT_THREAD_COUNT)
 
virtual IThreadPoolgetLifeCycleExecutor ()
 
virtual IThreadPoolgetApiExecutor ()
 
virtual IThreadPoolgetCallbackExecutor ()
 
- Public Member Functions inherited from kaa::AbstractExecutorContext
 AbstractExecutorContext ()
 
virtual void init ()
 
virtual void stop ()
 
void setAwaitTerminationTimeout (std::size_t awaitTerminationTimeout)
 
std::size_t getAwaitTerminationTimeout ()
 
- Public Member Functions inherited from kaa::IExecutorContext
virtual ~IExecutorContext ()=default
 

Static Public Attributes

static const std::size_t DEFAULT_THREAD_COUNT = 1
 

Protected Member Functions

virtual void doInit ()
 
virtual void doStop ()
 
- Protected Member Functions inherited from kaa::AbstractExecutorContext
IThreadPoolPtr createExecutor (std::size_t threadCount)
 
void shutdownExecutor (IThreadPoolPtr threadPool)
 

Detailed Description

Definition at line 26 of file SimpleExecutorContext.hpp.

Constructor & Destructor Documentation

kaa::SimpleExecutorContext::SimpleExecutorContext ( std::size_t  lifeCycleThreadCount = DEFAULT_THREAD_COUNT,
std::size_t  apiThreadCount = DEFAULT_THREAD_COUNT,
std::size_t  callbackThreadCount = DEFAULT_THREAD_COUNT 
)

Member Function Documentation

virtual void kaa::SimpleExecutorContext::doInit ( )
protectedvirtual
virtual void kaa::SimpleExecutorContext::doStop ( )
protectedvirtual
virtual IThreadPool& kaa::SimpleExecutorContext::getApiExecutor ( )
inlinevirtual

Executes user API calls to SDK client. For example, serializing of log records before submit to transport

Returns

Implements kaa::IExecutorContext.

Definition at line 33 of file SimpleExecutorContext.hpp.

virtual IThreadPool& kaa::SimpleExecutorContext::getCallbackExecutor ( )
inlinevirtual

Executes callback methods provided by SDK client user.

Returns

Implements kaa::IExecutorContext.

Definition at line 34 of file SimpleExecutorContext.hpp.

virtual IThreadPool& kaa::SimpleExecutorContext::getLifeCycleExecutor ( )
inlinevirtual

Executes lifecycle events/commands of Kaa client

Returns

Implements kaa::IExecutorContext.

Definition at line 32 of file SimpleExecutorContext.hpp.

Member Data Documentation

const std::size_t kaa::SimpleExecutorContext::DEFAULT_THREAD_COUNT = 1
static

Definition at line 37 of file SimpleExecutorContext.hpp.


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