Class MemoryBasedStateMachine.Options
Represents configuration options of memory-based state machine.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public class MemoryBasedStateMachine.Options : PersistentState.Options
Properties
| Edit this page View SourceCacheEvictionPolicy
Gets or sets eviction policy for the cache of buffered log entries.
Declaration
public MemoryBasedStateMachine.LogEntryCacheEvictionPolicy CacheEvictionPolicy { get; set; }
Property Value
Type | Description |
---|---|
MemoryBasedStateMachine.LogEntryCacheEvictionPolicy |
Remarks
This property has no effect is UseCaching is false.
See Also
CompactionMode
Gets or sets log compaction mode.
Declaration
public MemoryBasedStateMachine.CompactionMode CompactionMode { get; set; }
Property Value
Type | Description |
---|---|
MemoryBasedStateMachine.CompactionMode |
ReplayOnInitialize
Gets value indicating that dataset should be reconstructed when InitializeAsync(CancellationToken) method is called.
Declaration
public bool ReplayOnInitialize { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The default value is true.
SnapshotBufferSize
Gets or sets size of in-memory buffer for I/O operations associated with the construction of log snapshot.
Declaration
public int SnapshotBufferSize { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
By default, the value of this buffer is equal to BufferSize.
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|