Struct EmptyLogEntry
Represents No-OP entry.
Implements
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public readonly struct EmptyLogEntry : ISupplier<MemoryAllocator<byte>, MemoryOwner<byte>>, IFunctional<Func<MemoryAllocator<byte>, MemoryOwner<byte>>>, IInputLogEntry, IRaftLogEntry, ILogEntry, IDataTransferObject
Constructors
| Edit this page View SourceEmptyLogEntry()
Represents No-OP entry.
Declaration
public EmptyLogEntry()
Properties
| Edit this page View SourceContext
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.
IsSnapshot
Gets a value indicating that this entry is a snapshot entry.
Declaration
public bool IsSnapshot { get; }
Property Value
Type | Description |
---|---|
bool |
Term
Gets or sets log entry term.
Declaration
public required long Term { get; init; }
Property Value
Type | Description |
---|---|
long |
Timestamp
Gets timestamp of this log entry.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |