20#ifndef FASTDDS_RTPS_ATTRIBUTES__HISTORYATTRIBUTES_HPP
21#define FASTDDS_RTPS_ATTRIBUTES__HISTORYATTRIBUTES_HPP
23#include <fastdds/rtps/attributes/ResourceManagement.hpp>
24#include <fastdds/fastdds_dll.hpp>
70 , initialReservedCaches(500)
71 , maximumReservedCaches(0)
72 , extraReservedCaches(1)
89 : memoryPolicy(memoryPolicy)
90 , payloadMaxSize(payload)
91 , initialReservedCaches(initial)
92 , maximumReservedCaches(maxRes)
93 , extraReservedCaches(1)
112 : memoryPolicy(memoryPolicy)
113 , payloadMaxSize(payload)
114 , initialReservedCaches(initial)
115 , maximumReservedCaches(maxRes)
116 , extraReservedCaches(extra)
Class HistoryAttributes, to specify the attributes of a WriterHistory or a ReaderHistory.
Definition HistoryAttributes.hpp:39
int32_t maximumReservedCaches
Maximum number of reserved caches.
Definition HistoryAttributes.hpp:55
uint32_t payloadMaxSize
Maximum payload size of the history, default value 500.
Definition HistoryAttributes.hpp:46
HistoryAttributes()
Default constructor.
Definition HistoryAttributes.hpp:67
HistoryAttributes(MemoryManagementPolicy_t memoryPolicy, uint32_t payload, int32_t initial, int32_t maxRes)
Constructor.
Definition HistoryAttributes.hpp:84
HistoryAttributes(MemoryManagementPolicy_t memoryPolicy, uint32_t payload, int32_t initial, int32_t maxRes, int32_t extra)
Constructor.
Definition HistoryAttributes.hpp:106
MemoryManagementPolicy_t memoryPolicy
Memory management policy.
Definition HistoryAttributes.hpp:43
int32_t extraReservedCaches
Number of extra caches that can be reserved for other purposes than the history.
Definition HistoryAttributes.hpp:64
int32_t initialReservedCaches
Number of the initial Reserved Caches, default value 500.
Definition HistoryAttributes.hpp:49
virtual ~HistoryAttributes()
Definition HistoryAttributes.hpp:120
enum eprosima::fastdds::rtps::MemoryManagementPolicy MemoryManagementPolicy_t
Enum MemoryuManagementPolicy_t, indicated the way memory is managed in terms of dealing with CacheCha...
@ PREALLOCATED_WITH_REALLOC_MEMORY_MODE
Default size preallocated, requires reallocation when a bigger message arrives.
Definition ResourceManagement.hpp:35