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<Func<MemoryAllocator<byte>, MemoryOwner<byte>>>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
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<Func<MemoryAllocator<byte>, MemoryOwner<byte>>> where T : IBinaryFormattable<T>
Type Parameters
Name Description
T

Binary-formattable type.

Constructors

| Edit this page View Source

BinaryLogEntry()

Represents a log entry with binary payload.

Declaration
public BinaryLogEntry()

Properties

| Edit this page View Source

CommandId

Gets the command identifier.

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

Content

Gets or sets the log entry payload.

Declaration
public required T Content { get; init; }
Property Value
Type Description
T
| Edit this page 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) or ApplyAsync(LogEntry). It can be retrieved by using Context property.

| Edit this page View Source

Term

Gets Term value associated with this log entry.

Declaration
public required long Term { get; init; }
Property Value
Type Description
long
| Edit this page View Source

Timestamp

Gets the timestamp of this log entry.

Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type Description
DateTimeOffset

Implements

IInputLogEntry
IRaftLogEntry
ILogEntry
IDataTransferObject
ISupplier<T, TResult>
IFunctional<TDelegate>

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
DataTransferObject.ToByteArrayAsync<TObject>(TObject, MemoryAllocator<byte>?, CancellationToken)
DataTransferObject.ToMemoryAsync<TObject>(TObject, MemoryAllocator<byte>?, CancellationToken)
DataTransferObject.ToStringAsync<TObject>(TObject, Encoding, MemoryAllocator<byte>?, CancellationToken)
DataTransferObject.TransformAsync<TResult, TObject>(TObject, Func<IAsyncBinaryReader, CancellationToken, ValueTask<TResult>>, CancellationToken)
DataTransferObject.WriteToAsync<TObject>(TObject, IBufferWriter<byte>, CancellationToken)
DataTransferObject.WriteToAsync<TObject>(TObject, PipeWriter, long, CancellationToken)
DataTransferObject.WriteToAsync<TObject>(TObject, Stream, int, CancellationToken)
DataTransferObject.WriteToAsync<TObject>(TObject, Stream, Memory<byte>, CancellationToken)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾