client-cpp  0.10.0
kaa::DefaultFailoverStrategy Class Reference

#include <DefaultFailoverStrategy.hpp>

+ Inheritance diagram for kaa::DefaultFailoverStrategy:
+ Collaboration diagram for kaa::DefaultFailoverStrategy:

Public Member Functions

 DefaultFailoverStrategy (IKaaClientContext &context, std::size_t retryPeriod=DEFAULT_RETRY_PERIOD)
 
virtual FailoverStrategyDecision onFailover (KaaFailoverReason failover)
 
- Public Member Functions inherited from kaa::IFailoverStrategy
virtual ~IFailoverStrategy ()
 

Static Public Attributes

static const std::size_t DEFAULT_RETRY_PERIOD = 5
 

Protected Attributes

IKaaClientContextcontext_
 
std::size_t retryPeriod_ = DEFAULT_RETRY_PERIOD
 

Detailed Description

Definition at line 28 of file DefaultFailoverStrategy.hpp.

Constructor & Destructor Documentation

kaa::DefaultFailoverStrategy::DefaultFailoverStrategy ( IKaaClientContext context,
std::size_t  retryPeriod = DEFAULT_RETRY_PERIOD 
)
inline

Definition at line 30 of file DefaultFailoverStrategy.hpp.

Member Function Documentation

virtual FailoverStrategyDecision kaa::DefaultFailoverStrategy::onFailover ( KaaFailoverReason  failover)
virtual

Member Data Documentation

IKaaClientContext& kaa::DefaultFailoverStrategy::context_
protected

Definition at line 42 of file DefaultFailoverStrategy.hpp.

const std::size_t kaa::DefaultFailoverStrategy::DEFAULT_RETRY_PERIOD = 5
static

Definition at line 39 of file DefaultFailoverStrategy.hpp.

std::size_t kaa::DefaultFailoverStrategy::retryPeriod_ = DEFAULT_RETRY_PERIOD
protected

Definition at line 44 of file DefaultFailoverStrategy.hpp.


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