Struct BinaryLogEntry
Represents default implementation of IRaftLogEntry.
Implements
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public readonly struct BinaryLogEntry : IInputLogEntry, IRaftLogEntry, ILogEntry, IDataTransferObject, ISupplier<MemoryAllocator<byte>, MemoryOwner<byte>>, IFunctional<Func<MemoryAllocator<byte>, MemoryOwner<byte>>>
Constructors
| Edit this page View SourceBinaryLogEntry()
Represents default implementation of IRaftLogEntry.
Declaration
public BinaryLogEntry()
Properties
| Edit this page View SourceCommandId
Gets the command identifier.
Declaration
public int? CommandId { get; init; }
Property Value
Type | Description |
---|---|
int? |
Content
Gets the payload of the log entry.
Declaration
public required ReadOnlyMemory<byte> Content { get; init; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<byte> |
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.
Term
Gets Term value associated with this log entry.
Declaration
public required long Term { get; init; }
Property Value
Type | Description |
---|---|
long |
Timestamp
Gets the timestamp of this log entry.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |