Show / Hide Table of Contents

Class MemoryBasedStateMachine.InlineSnapshotBuilder

Represents a snapshot builder that allows to write directly to the snapshot file using RandomAccess class.

Inheritance
object
Disposable
MemoryBasedStateMachine.SnapshotBuilder
MemoryBasedStateMachine.InlineSnapshotBuilder
Implements
IDisposable
Inherited Members
MemoryBasedStateMachine.SnapshotBuilder.ApplyAsync(PersistentState.LogEntry)
MemoryBasedStateMachine.SnapshotBuilder.AdjustIndex(long, long, ref long)
Disposable.IsDisposed
Disposable.IsDisposing
Disposable.IsDisposingOrDisposed
Disposable.CreateException()
Disposable.DisposedTask
Disposable.GetDisposedTask<T>()
Disposable.TrySetDisposedException<T>(TaskCompletionSource<T>)
Disposable.TrySetDisposedException(TaskCompletionSource)
Disposable.Dispose(bool)
Disposable.DisposeAsyncCore()
Disposable.DisposeAsync()
Disposable.TryBeginDispose()
Disposable.Dispose()
Disposable.Dispose(IEnumerable<IDisposable>)
Disposable.DisposeAsync(IEnumerable<IAsyncDisposable>)
Disposable.Dispose<T>(ReadOnlySpan<T>)
Disposable.DisposeAsync(params IAsyncDisposable[])
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
protected abstract class MemoryBasedStateMachine.InlineSnapshotBuilder : MemoryBasedStateMachine.SnapshotBuilder, IDisposable

Constructors

| Edit this page View Source

InlineSnapshotBuilder(in SnapshotBuilderContext)

Initializes a new snapshot builder.

Declaration
protected InlineSnapshotBuilder(in MemoryBasedStateMachine.SnapshotBuilderContext context)
Parameters
Type Name Description
MemoryBasedStateMachine.SnapshotBuilderContext context

The context of the snapshot builder.

Properties

| Edit this page View Source

SnapshotFileHandle

Gets the file descriptor pointing to the snapshot file.

Declaration
protected SafeFileHandle SnapshotFileHandle { get; }
Property Value
Type Description
SafeFileHandle

Methods

| Edit this page View Source

FlushAsync()

Flushes the data to the snapshot file.

Declaration
protected virtual ValueTask<long> FlushAsync()
Returns
Type Description
ValueTask<long>

The size of the snapshot, in bytes. It can be less than the size of the file.

| Edit this page View Source

InitializeAsync()

Initializes the builder.

Declaration
protected virtual ValueTask InitializeAsync()
Returns
Type Description
ValueTask

The task representing asynchronous result.

Implements

IDisposable

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
☀
☾