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.Equals(object, object)
object.GetType()
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

| Edit this page View Source

Count

Gets the number of log entries in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
int
| Edit this page 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

| Edit this page View Source

Dispose()

Informs WAL that the reader is no longer used.

Declaration
public void Dispose()
| Edit this page 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, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
Collection.Append<T>(IEnumerable<T>, params T[])
Collection.Copy<T>(IEnumerable<T>, int, MemoryAllocator<T>?)
Collection.ElementAt<T>(IEnumerable<T>, int, out T)
Collection.FirstOrNone<T>(IEnumerable<T>)
Collection.ForEachAsync<T>(IEnumerable<T>, Func<T, CancellationToken, ValueTask>, CancellationToken)
Collection.ForEach<T>(IEnumerable<T>, Action<T>)
Collection.LastOrNone<T>(IEnumerable<T>)
Collection.Prepend<T>(IEnumerable<T>, params T[])
Collection.SequenceHashCode<T>(IEnumerable<T>, bool)
Collection.ToAsyncEnumerable<T>(IEnumerable<T>, bool)
Collection.ToString<T>(IEnumerable<T>, string, string)
Enumerator.GetAsyncEnumerator<T>(IEnumerable<T>, CancellationToken)
Collection.Convert<TInput, TOutput>(IReadOnlyCollection<TInput>, Converter<TInput, TOutput>)
List.Convert<TInput, TOutput>(IReadOnlyList<TInput>, Converter<TInput, TOutput>)
List.IndexerGetter<T>(IReadOnlyList<T>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾