Class PersistentState.Options
Represents configuration options of the persistent audit trail.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public class Options
Properties
| Improve this Doc View SourceBackupCompression
Gets or sets compression level used to create backup archive.
Declaration
public CompressionLevel BackupCompression { get; set; }
Property Value
Type | Description |
---|---|
CompressionLevel |
BufferSize
Gets size of in-memory buffer for I/O operations.
Declaration
public int BufferSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
InitialPartitionSize
Gets or sets the initial size of the file that holds the partition with log entries.
Declaration
public long InitialPartitionSize { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
MaxConcurrentReads
Gets or sets the number of possible parallel reads.
Declaration
public int MaxConcurrentReads { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
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 |
---|---|
Boolean |
Remarks
The default value is true.
UseCaching
Enables or disables in-memory cache.
Declaration
public bool UseCaching { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true to in-memory cache for faster read/write of log entries; false to reduce the memory by the cost of the performance. |
Methods
| Improve this Doc View SourceCreateMemoryPool<T>()
Gets memory pool that is used by Write-Ahead Log for its I/O operations.
Declaration
[Obsolete("Use GetMemoryAllocator instead")]
public virtual MemoryPool<T> CreateMemoryPool<T>()
where T : struct
Returns
Type | Description |
---|---|
MemoryPool<T> | The instance of memory pool. |
Type Parameters
Name | Description |
---|---|
T | The type of the items in the memory pool. |
GetMemoryAllocator<T>()
Gets memory allocator for internal purposes.
Declaration
public virtual MemoryAllocator<T> GetMemoryAllocator<T>()
where T : struct
Returns
Type | Description |
---|---|
MemoryAllocator<T> | The memory allocator. |
Type Parameters
Name | Description |
---|---|
T | The type of items in the pool. |