MaxHistorySizeParent< DerivedT > Class Template Reference

#include <RobotAPI/libraries/armem/server/wm/detail/MaxHistorySize.h>

+ Inheritance diagram for MaxHistorySizeParent< DerivedT >:

Public Member Functions

void setMaxHistorySize (long maxSize)
 Sets the maximum history size of entities in this container.
 
void setTruncateMaxBatchSize (size_t batchSize)
 Sets the maximum batch size for truncation.
 
void setUnlimitedHistoryWarningThreshold (size_t threshold)
 Sets the warning threshold for unlimited history growth.
 
- Public Member Functions inherited from MaxHistorySize
long getMaxHistorySize () const
 
size_t getTruncateMaxBatchSize () const
 
size_t getUnlimitedHistoryWarningThreshold () const
 
void setMaxHistorySize (long maxSize, const std::string &additionalInfo="")
 Set the maximum number of snapshots to be contained in an entity.
 
void setTruncateMaxBatchSize (size_t batchSize)
 Set the maximum number of snapshots to remove per truncate() call.
 
void setUnlimitedHistoryWarningThreshold (size_t threshold)
 Set the threshold for warning about unlimited history growth.
 

Additional Inherited Members

- Protected Attributes inherited from MaxHistorySize
long _maxHistorySize = 120000
 Maximum size of entity histories.
 
size_t _truncateMaxBatchSize = 100
 Maximum number of snapshots to remove per truncate() call.
 
size_t _unlimitedHistoryWarningThreshold = 500000
 Threshold for warning about unlimited history growth.
 

Detailed Description

template<class DerivedT>
class armarx::armem::server::wm::detail::MaxHistorySizeParent< DerivedT >

Definition at line 66 of file MaxHistorySize.h.

Member Function Documentation

◆ setMaxHistorySize()

template<class DerivedT>
void setMaxHistorySize ( long maxSize)
inline

Sets the maximum history size of entities in this container.

This affects all current entities as well as new ones.

See also
MaxHistorySize::setMaxHistorySize()

Definition at line 76 of file MaxHistorySize.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTruncateMaxBatchSize()

template<class DerivedT>
void setTruncateMaxBatchSize ( size_t batchSize)
inline

Sets the maximum batch size for truncation.

This affects all current entities as well as new ones.

See also
MaxHistorySize::setTruncateMaxBatchSize()

Definition at line 105 of file MaxHistorySize.h.

+ Here is the call graph for this function:

◆ setUnlimitedHistoryWarningThreshold()

template<class DerivedT>
void setUnlimitedHistoryWarningThreshold ( size_t threshold)
inline

Sets the warning threshold for unlimited history growth.

This affects all current entities as well as new ones.

See also
MaxHistorySize::setUnlimitedHistoryWarningThreshold()

Definition at line 90 of file MaxHistorySize.h.

+ Here is the call graph for this function:

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