Show / Hide Table of Contents

Struct WriteAheadLog.LogEntryReader

Represents a reader of the log entries;

Implements
IReadOnlyList<LogEntry>
IReadOnlyCollection<LogEntry>
IEnumerable<LogEntry>
IEnumerable
IDisposable
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.StateMachine
Assembly: DotNext.Net.Cluster.dll
Syntax
public readonly struct WriteAheadLog.LogEntryReader : IReadOnlyList<LogEntry>, IReadOnlyCollection<LogEntry>, IEnumerable<LogEntry>, IEnumerable, IDisposable
Remarks

The caller must dispose the reader to inform the WAL that the entries are subjects for garbage collection.

Properties

View Source

Count

Gets the number of log entries in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
int
View Source

this[int]

Gets the log entry by index.

Declaration
public LogEntry this[int index] { get; }
Parameters
Type Name Description
int index

The index of the log entry within the collection.

Property Value
Type Description
LogEntry

Methods

View Source

Dispose()

Informs WAL that the reader is no longer used.

Declaration
public void Dispose()
View Source

GetEnumerator()

Gets the enumerator over the log entries.

Declaration
public IEnumerator<LogEntry> GetEnumerator()
Returns
Type Description
IEnumerator<LogEntry>

The enumerator over the log entries.

Implements

IReadOnlyList<T>
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable
IDisposable

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾