Class MemoryBasedStateMachine.IncrementalSnapshotBuilder
Represents incremental snapshot builder.
Inheritance
MemoryBasedStateMachine.IncrementalSnapshotBuilder
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
protected abstract class MemoryBasedStateMachine.IncrementalSnapshotBuilder : MemoryBasedStateMachine.SnapshotBuilder, IDisposable, IRaftLogEntry, ILogEntry, IDataTransferObject
Constructors
| Edit this page View SourceIncrementalSnapshotBuilder(in SnapshotBuilderContext)
Initializes a new snapshot builder.
Declaration
protected IncrementalSnapshotBuilder(in MemoryBasedStateMachine.SnapshotBuilderContext context)
Parameters
Type | Name | Description |
---|---|---|
MemoryBasedStateMachine.SnapshotBuilderContext | context | The context of the snapshot builder. |
Methods
| Edit this page View SourceWriteToAsync<TWriter>(TWriter, CancellationToken)
Serializes the snapshotted entry.
Declaration
public abstract ValueTask WriteToAsync<TWriter>(TWriter writer, CancellationToken token) where TWriter : IAsyncBinaryWriter
Parameters
Type | Name | Description |
---|---|---|
TWriter | writer | The binary writer. |
CancellationToken | token | The token that can be used to cancel the operation. |
Returns
Type | Description |
---|---|
ValueTask | The task representing state of asynchronous execution. |
Type Parameters
Name | Description |
---|---|
TWriter | The type of binary writer. |