|
| BlockPublishStore (Buffer buffer, int blocksPerRealloc) |
|
| BlockPublishStore (Buffer buffer, bool useCrc=false, int blocksPerRealloc=10000) |
|
void | recover () |
|
void | growFreeListIfEmpty () |
|
◆ discardUpTo()
void AMPS.Client.BlockPublishStore.discardUpTo |
( |
ulong |
sequence | ) |
|
|
inline |
Discard all operations up to the index provided.
- Parameters
-
index | the sequence number to keep – all previous sequence numbers will be discarded |
Implements AMPS.Client.Store.
◆ flush() [1/2]
void AMPS.Client.BlockPublishStore.flush |
( |
| ) |
|
|
inline |
Wait for the store to discard everything that has been stored up to the point in time when flush is called, then return.
Implements AMPS.Client.Store.
◆ flush() [2/2]
void AMPS.Client.BlockPublishStore.flush |
( |
int |
timeout | ) |
|
|
inline |
Wait for the store to discard everything that has been stored up to the point in time when flush is called, then return. Throw an exception if this is not completed in the number of milliseconds specified by the timeout.
- Parameters
-
timeout | the number of milliseconds to wait for the flush |
Implements AMPS.Client.Store.
◆ getLastPersisted()
ulong AMPS.Client.BlockPublishStore.getLastPersisted |
( |
| ) |
|
|
inline |
◆ replay()
virtual void AMPS.Client.BlockPublishStore.replay |
( |
StoreReplayer |
replayer | ) |
|
|
inlinevirtual |
◆ replaySingle()
bool AMPS.Client.BlockPublishStore.replaySingle |
( |
StoreReplayer |
replayer, |
|
|
ulong |
sequence |
|
) |
| |
|
inline |
◆ setMessage()
void AMPS.Client.BlockPublishStore.setMessage |
( |
Message |
message | ) |
|
|
inline |
◆ setResizeHandler()
Set the resize handler for the publish store. An implementation can call the resize handler in the event that it needs to grow the size of the publish store.
Implements AMPS.Client.Store.
◆ store()
void AMPS.Client.BlockPublishStore.store |
( |
Message |
message | ) |
|
|
inline |
Store the provided message. The message sequence is the key the client can later use to replay the operation or remove the operation from the store. Implementations may assume that the index increases monotonically.
- Parameters
-
message | The message to store. |
Implements AMPS.Client.Store.
◆ unpersistedCount()
long AMPS.Client.BlockPublishStore.unpersistedCount |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- AMPS.Client/BlockPublishStore.cs