Show / Hide Table of Contents

Interface IReplicationCluster<TEntry>

Represents replication cluster.

Inherited Members
IReplicationCluster.ForceReplicationAsync(CancellationToken)
IReplicationCluster.ReplicationCompleted
ICluster.WaitForLeaderAsync(TimeSpan, CancellationToken)
ICluster.ResignAsync(CancellationToken)
ICluster.Leader
ICluster.LeaderChanged
IPeerMesh<IClusterMember>.TryGetPeer(EndPoint)
IPeerMesh.Peers
IPeerMesh.PeerDiscovered
IPeerMesh.PeerGone
Namespace: DotNext.Net.Cluster.Replication
Assembly: DotNext.Net.Cluster.dll
Syntax
public interface IReplicationCluster<TEntry> : IReplicationCluster, ICluster, IPeerMesh<IClusterMember>, IPeerMesh where TEntry : class, ILogEntry
Type Parameters
Name Description
TEntry

The type of the log entry in the transaction log.

Properties

View Source

AuditTrail

Gets transaction log used for replication.

Declaration
IAuditTrail<TEntry> AuditTrail { get; }
Property Value
Type Description
IAuditTrail<TEntry>

Methods

View Source

ReplicateAsync<TEntryImpl>(TEntryImpl, CancellationToken)

Appends a new log entry and ensures that it is replicated and committed.

Declaration
ValueTask ReplicateAsync<TEntryImpl>(TEntryImpl entry, CancellationToken token = default) where TEntryImpl : TEntry
Parameters
Type Name Description
TEntryImpl entry

The log entry to be added.

CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
ValueTask
Type Parameters
Name Description
TEntryImpl

The type of the log entry.

Exceptions
Type Condition
InvalidOperationException

The current node is not a leader.

OperationCanceledException

The operation has been canceled.

Extension Methods

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