26 #ifndef _MEMORYPUBLISHSTORE_H_
27 #define _MEMORYPUBLISHSTORE_H_
56 normalizeBlocksPerRealloc(
57 blockPerRealloc_, DEFAULT_BLOCK_SIZE),
58 false, errorOnPublishGap_,
60 blockPerRealloc_, DEFAULT_BLOCK_SIZE))
61 , _firstGapCheckDone(false)
88 bool errorOnPublishGap_ =
false)
90 normalizeBlocksPerRealloc(
91 blocksPerRealloc_, blockSize_),
92 false, errorOnPublishGap_,
93 normalizeBlockSize(blocksPerRealloc_, blockSize_))
94 , _firstGapCheckDone(false)
112 if (!_firstGapCheckDone)
114 _firstGapCheckDone =
true;
118 virtual bool getErrorOnPublishGap()
const
120 return _firstGapCheckDone ? StoreImpl::getErrorOnPublishGap() : false;
124 bool _firstGapCheckDone;
Provides AMPS::BlockPublishStore, a concrete implementation of a store that breaks the allocated stor...
Provides AMPS::MemoryStoreBuffer, used by an AMPS::HAClient to store messages in memory.
Core type, function, and class declarations for the AMPS C++ client.
Used as a base class for other stores in the AMPS C++ client, this is an implementation of StoreImpl ...
Definition: BlockPublishStore.hpp:61
virtual void discardUpTo(amps_uint64_t index_)
Remove all messages with an index up to and including index_.
Definition: BlockPublishStore.hpp:498
amps_uint64_t getLastPersisted(void)
Get the last persisted sequence number.
Definition: BlockPublishStore.hpp:711
A StoreImpl implementation that uses MemoryStoreBuffer as its buffer to hold published messages in me...
Definition: MemoryPublishStore.hpp:45
virtual void discardUpTo(amps_uint64_t index_)
Remove all messages with an index up to and including index_.
Definition: MemoryPublishStore.hpp:109
MemoryPublishStore(size_t blocksPerRealloc_, amps_uint32_t blockSize_, bool errorOnPublishGap_=false)
Create a MemoryPublishStore with a specified initial capacity in bytes.
Definition: MemoryPublishStore.hpp:87
MemoryPublishStore(size_t blockPerRealloc_, bool errorOnPublishGap_=false)
Create a MemoryPublishStore with a specified initial capacity in bytes.
Definition: MemoryPublishStore.hpp:54
A Buffer implementation that uses memory for storage.
Definition: MemoryStoreBuffer.hpp:51