Show / Hide Table of Contents

Struct LogEntry<TCommand>

Represents Raft log entry containing custom command.

Implements
IInputLogEntry
IRaftLogEntry
ILogEntry
IDataTransferObject
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.Commands
Assembly: DotNext.Net.Cluster.dll
Syntax
public readonly struct LogEntry<TCommand> : IInputLogEntry, IRaftLogEntry, ILogEntry, IDataTransferObject where TCommand : ICommand<TCommand>
Type Parameters
Name Description
TCommand

The type of the command encoded by the log entry.

Properties

View Source

Command

Gets the command associated with this log entry.

Declaration
public required TCommand Command { get; init; }
Property Value
Type Description
TCommand
View Source

Context

Gets the context of the command.

Declaration
public object? Context { get; init; }
Property Value
Type Description
object
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

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)

See Also

JsonSerializable<T>
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾