Class LogEntryProducer<TEntry>
Represents default implementation of ILogEntryProducer<TEntry> backed by the list of the log entries.
Implements
ILogEntryProducer<TEntry>
Namespace: DotNext.Net.Cluster.Replication
Assembly: DotNext.Net.Cluster.dll
Syntax
public sealed class LogEntryProducer<TEntry> : object, ILogEntryProducer<TEntry> where TEntry : ILogEntry
Type Parameters
| Name | Description |
|---|---|
| TEntry | The type of the entries supplied by this |
Constructors
| Improve this Doc View SourceLogEntryProducer()
Initializes a new empty producer of the log entries.
Declaration
public LogEntryProducer()
LogEntryProducer(TEntry[])
Initializes a new producer of the log entries passed as array.
Declaration
public LogEntryProducer(params TEntry[] entries)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntry[] | entries | The log entries to be returned by the producer. |
LogEntryProducer(IList<TEntry>)
Initializes a new producer of the log entries passed as list.
Declaration
public LogEntryProducer(IList<TEntry> entries)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TEntry> | entries | The list of the log entries to be returned by the producer. |
Methods
| Improve this Doc View SourceReset()
Resets the position of the producer.
Declaration
public void Reset()
Explicit Interface Implementations
| Improve this Doc View SourceILogEntryProducer<TEntry>.Current
Declaration
TEntry ILogEntryProducer<TEntry>.Current { get; }
Returns
| Type | Description |
|---|---|
| TEntry |
ILogEntryProducer<TEntry>.MoveNextAsync()
Declaration
ValueTask<bool> ILogEntryProducer<TEntry>.MoveNextAsync()
Returns
| Type | Description |
|---|---|
| ValueTask<Boolean> |
ILogEntryProducer<TEntry>.RemainingCount
Declaration
long ILogEntryProducer<TEntry>.RemainingCount { get; }
Returns
| Type | Description |
|---|---|
| Int64 |