Show / Hide Table of Contents

Class WriteAheadLog.Options

Represents configuration options.

Inheritance
object
WriteAheadLog.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.StateMachine
Assembly: DotNext.Net.Cluster.dll
Syntax
public class WriteAheadLog.Options

Properties

| Edit this page View Source

Allocator

Gets or sets the memory allocator.

Declaration
public MemoryAllocator<byte>? Allocator { get; init; }
Property Value
Type Description
MemoryAllocator<byte>
| Edit this page View Source

ChunkMaxSize

Gets or sets the maximum size of the single chunk file, in bytes.

Declaration
public int ChunkMaxSize { get; init; }
Property Value
Type Description
int
Exceptions
Type Condition
ArgumentOutOfRangeException

value is less than or equal to zero.

| Edit this page View Source

ConcurrencyLevel

Gets or sets an expected number of concurrent users of the log.

Declaration
public int ConcurrencyLevel { get; init; }
Property Value
Type Description
int
Exceptions
Type Condition
ArgumentOutOfRangeException

value is less than or equal to zero.

| Edit this page View Source

FlushInterval

Gets or sets the interval of the checkpoint.

Declaration
public TimeSpan FlushInterval { get; init; }
Property Value
Type Description
TimeSpan

Use InfiniteTimeSpan to disable automatic checkpoints. The checkpoint must be triggered manually by calling FlushAsync(CancellationToken) method. Use Zero to enable automatic checkpoint on every commit. Otherwise, the checkpoint is produced every specified time interval.

| Edit this page View Source

Location

Gets or sets the path to the root folder to be used by the log to persist log entries.

Declaration
[Required]
public required string Location { get; init; }
Property Value
Type Description
string
Exceptions
Type Condition
ArgumentOutOfRangeException
| Edit this page View Source

MeasurementTags

Gets or sets a list of tags to be associated with each measurement.

Declaration
[CLSCompliant(false)]
public TagList MeasurementTags { get; init; }
Property Value
Type Description
TagList

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.GetUserData<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
ExpressionBuilder.Const<T>(T)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan, CancellationToken)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾