client-cpp
0.10.0
|
#include <RecordCountWithTimeLimitLogUploadStrategy.hpp>
Public Member Functions | |
RecordCountWithTimeLimitLogUploadStrategy (std::size_t countThreshold, std::size_t logUploadCheckReriod, IKaaClientContext &context) | |
virtual LogUploadStrategyDecision | isUploadNeeded (ILogStorageStatus &status) override |
Decides whether the log upload is needed. More... | |
Public Member Functions inherited from kaa::DefaultLogUploadStrategy | |
DefaultLogUploadStrategy (IKaaClientContext &context) | |
virtual void | onTimeout (ILogFailoverCommand &controller) |
Callback is used when the log delivery timeout detected. More... | |
virtual void | onFailure (ILogFailoverCommand &controller, LogDeliveryErrorCode code) |
Callback is used when the log delivery is failed. More... | |
virtual std::size_t | getTimeout () |
Maximum time to wait the log delivery response. More... | |
void | setUploadTimeout (std::size_t timeout) |
virtual std::size_t | getTimeoutCheckPeriod () |
void | setTimeoutCheckPeriod (std::size_t period) |
virtual std::size_t | getLogUploadCheckPeriod () |
void | setLogUploadCheckPeriod (std::size_t period) |
virtual std::size_t | getMaxParallelUploads () |
Max amount of log batches allowed to be uploaded parallel. More... | |
void | setMaxParallelUploads (std::size_t count) |
std::size_t | getRetryPeriod () |
void | setRetryPeriod (std::size_t period) |
std::size_t | getVolumeThreshold () const |
void | setVolumeThreshold (std::size_t maxVolume) |
std::size_t | getCountThreshold () const |
void | setCountThreshold (std::size_t maxCount) |
Public Member Functions inherited from kaa::ILogUploadStrategy | |
virtual | ~ILogUploadStrategy () |
Definition at line 30 of file RecordCountWithTimeLimitLogUploadStrategy.hpp.
|
inline |
Definition at line 32 of file RecordCountWithTimeLimitLogUploadStrategy.hpp.
|
inlineoverridevirtual |
Decides whether the log upload is needed.
The decision is made based on the current log storage status and, depending on the strategy implementation, on some additional information.
[in] | status | The log storage status. |
Reimplemented from kaa::DefaultLogUploadStrategy.
Definition at line 39 of file RecordCountWithTimeLimitLogUploadStrategy.hpp.