Show / Hide Table of Contents

Class PersistentState.Options

Represents configuration options of the persistent audit trail.

Inheritance
Object
PersistentState.Options
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public class Options

Properties

| Improve this Doc View Source

BackupCompression

Gets or sets compression level used to create backup archive.

Declaration
public CompressionLevel BackupCompression { get; set; }
Property Value
Type Description
CompressionLevel
| Improve this Doc View Source

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

value is too small.

| Improve this Doc View Source

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
| Improve this Doc View Source

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

value is less than 1.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

CreateMemoryPool<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.

| Improve this Doc View Source

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.

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX