Show / Hide Table of Contents

Struct BinaryLogEntry<T>

Represents a log entry with binary payload.

Implements
IInputLogEntry
IRaftLogEntry
ILogEntry
IDataTransferObject
ISupplier<MemoryAllocator<byte>, MemoryOwner<byte>>
IFunctional
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public readonly struct BinaryLogEntry<T> : IInputLogEntry, IRaftLogEntry, ILogEntry, IDataTransferObject, ISupplier<MemoryAllocator<byte>, MemoryOwner<byte>>, IFunctional where T : IBinaryFormattable<T>
Type Parameters
Name Description
T

Binary-formattable type.

Properties

View Source

CommandId

Gets the command identifier.

Declaration
public int? CommandId { get; init; }
Property Value
Type Description
int?
View Source

Content

Gets or sets the log entry payload.

Declaration
public required T Content { get; init; }
Property Value
Type Description
T
View Source

Context

Gets or sets runtime context associated with the log entry.

Declaration
public object? Context { get; init; }
Property Value
Type Description
object
Remarks

The value passes through AppendAsync<TEntryImpl>(TEntryImpl, CancellationToken) to ApplyAsync(LogEntry, CancellationToken). It can be retrieved by using Context property.

View Source

Term

Gets Term value associated with this log entry.

Declaration
public required long Term { get; init; }
Property Value
Type Description
long

Implements

IInputLogEntry
IRaftLogEntry
ILogEntry
IDataTransferObject
ISupplier<T, TResult>
IFunctional

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾