Show / Hide Table of Contents

Enum MemoryBasedStateMachine.CompactionMode

Represents log compaction mode.

Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public enum MemoryBasedStateMachine.CompactionMode : byte

Fields

Name Description
Background

Log compaction should be triggered manually with ForceCompactionAsync(long, CancellationToken) in the background.

Foreground

Log compaction is executing automatically in parallel with the commit process.

Incremental

Log compaction is executing for each committed log entry and flushes the snapshot only when the partition overflows.

Sequential

Log compaction forced automatically during the commit process which tries to squash as many committed entries as possible.

Extension Methods

BasicExtensions.IsBetween<MemoryBasedStateMachine.CompactionMode, TLowerBound, TUpperBound>(MemoryBasedStateMachine.CompactionMode, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<MemoryBasedStateMachine.CompactionMode>(MemoryBasedStateMachine.CompactionMode, ReadOnlySpan<MemoryBasedStateMachine.CompactionMode>)
Collection.ToAsyncEnumerator<MemoryBasedStateMachine.CompactionMode, T>(MemoryBasedStateMachine.CompactionMode, CancellationToken)
Collection.ToClassicEnumerator<MemoryBasedStateMachine.CompactionMode, T>(MemoryBasedStateMachine.CompactionMode)
Enumerator.Skip<MemoryBasedStateMachine.CompactionMode, T>(ref MemoryBasedStateMachine.CompactionMode, int)
ExpressionBuilder.Const<MemoryBasedStateMachine.CompactionMode>(MemoryBasedStateMachine.CompactionMode)
EnumType.GetCustomAttribute<MemoryBasedStateMachine.CompactionMode, TAttribute>(MemoryBasedStateMachine.CompactionMode)
EnumType.GetCustomAttributes<MemoryBasedStateMachine.CompactionMode, TAttribute>(MemoryBasedStateMachine.CompactionMode)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾