26 #ifndef _MEMORYPUBLISHSTORE_H_ 27 #define _MEMORYPUBLISHSTORE_H_ 56 (amps_uint32_t)blockPerRealloc_,
57 false, errorOnPublishGap_)
58 , _firstGapCheckDone(false)
85 bool errorOnPublishGap_ =
false)
87 (amps_uint32_t)blocksPerRealloc_,
88 false, errorOnPublishGap_, blockSize_)
89 , _firstGapCheckDone(false)
107 if (!_firstGapCheckDone)
109 _firstGapCheckDone =
true;
113 virtual bool getErrorOnPublishGap()
const 115 return _firstGapCheckDone ? StoreImpl::getErrorOnPublishGap() :
false;
119 bool _firstGapCheckDone;
125 #endif //_MEMORYPUBLISHSTORE_H_ MemoryPublishStore(size_t blocksPerRealloc_, amps_uint32_t blockSize_, bool errorOnPublishGap_=false)
Create a MemoryPublishStore with a specified initial capacity in bytes.
Definition: MemoryPublishStore.hpp:84
Provides AMPS::BlockPublishStore, a concrete implementation of a store that breaks the allocated stor...
A Buffer implementation that uses memory for storage.
Definition: MemoryStoreBuffer.hpp:50
amps_uint64_t getLastPersisted(void)
Get the last persisted sequence number.
Definition: BlockPublishStore.hpp:711
Core type, function, and class declarations for the AMPS C++ client.
virtual void discardUpTo(amps_uint64_t index_)
Remove all messages with an index up to and including index_.
Definition: MemoryPublishStore.hpp:104
Used as a base class for other stores in the AMPS C++ client, this is an implementation of StoreImpl ...
Definition: BlockPublishStore.hpp:60
Provides AMPS::MemoryStoreBuffer, used by an AMPS::HAClient to store messages in memory.
MemoryPublishStore(size_t blockPerRealloc_, bool errorOnPublishGap_=false)
Create a MemoryPublishStore with a specified initial capacity in bytes.
Definition: MemoryPublishStore.hpp:54
Definition: ampsplusplus.hpp:103
A StoreImpl implementation that uses MemoryStoreBuffer as its buffer to hold published messages in me...
Definition: MemoryPublishStore.hpp:44
virtual void discardUpTo(amps_uint64_t index_)
Remove all messages with an index up to and including index_.
Definition: BlockPublishStore.hpp:498