AMPS C# Client
5.3.3.4
AMPS C# Client for .NET
|
Public Member Functions | |
MemoryPublishStore (int initialCapacity) | |
override void | Dispose () |
![]() | |
void | store (Message m) |
void | store (Message m, Boolean assignSequence) |
void | discardUpTo (ulong index) |
ulong | getLastPersisted () |
ulong | getLowestUnpersisted () |
ulong | getHighestUnpersisted () |
void | setMessage (Message message) |
virtual void | replay (StoreReplayer replayer) |
bool | replaySingle (StoreReplayer replayer, ulong index) |
long | unpersistedCount () |
void | flush () |
void | flush (int timeout) |
void | setResizeHandler (PublishStoreResizeHandler handler) |
Additional Inherited Members | |
![]() | |
BlockPublishStore (Buffer buffer, int blocksPerRealloc) | |
BlockPublishStore (Buffer buffer, bool useCrc=false, int blocksPerRealloc=10000) | |
void | recover () |
void | growFreeListIfEmpty () |
![]() | |
PublishStoreResizeHandler | _resizeHandler = null |
Buffer | _buffer |
Utilities.CRC32 | _crc = null |
|
inline |
Creates a new MemoryPublishStore.
initialCapacity | The initial capacity (in 2k blocks) of the store. This size is also used when resizing the store: the store is resized by this value each time the store grows. A general guideline for initial capacity is to set the capacity to messages_published_per_second * int(average_message_size / block_size) + 1. |