Struct BinaryLogEntry<T>
Represents a log entry with binary payload.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public readonly struct BinaryLogEntry<T> : IRaftLogEntry, ILogEntry, IDataTransferObject where T : notnull, IBinaryFormattable<T>
Type Parameters
Name | Description |
---|---|
T | Binary-formattable type. |
Constructors
| Edit this page View SourceBinaryLogEntry()
Represents a log entry with binary payload.
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 or sets the log entry payload.
Declaration
public required T Content { get; init; }
Property Value
Type | Description |
---|---|
T |
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 |