Interface IReplicationCluster<TEntry>
Represents replication cluster.
Inherited Members
Namespace: DotNext.Net.Cluster.Replication
Assembly: DotNext.Net.Cluster.dll
Syntax
public interface IReplicationCluster<TEntry> : IReplicationCluster, ICluster where TEntry : class, ILogEntry
Type Parameters
Name | Description |
---|---|
TEntry | The type of the log entry in the transaction log. |
Properties
| Improve this Doc View SourceAuditTrail
Gets transaction log used for replication.
Declaration
IAuditTrail<TEntry> AuditTrail { get; }
Property Value
Type | Description |
---|---|
IAuditTrail<TEntry> |
Methods
| Improve this Doc View SourceForceReplicationAsync(TimeSpan, CancellationToken)
Forces replication.
Declaration
Task<bool> ForceReplicationAsync(TimeSpan timeout, CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | The time to wait until replication ends. |
CancellationToken | token | The token that can be used to cancel waiting. |
Returns
Type | Description |
---|---|
Task<Boolean> | true if replication is completed; false. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The local cluster member is not a leader. |
OperationCanceledException | The operation has been canceled. |
Explicit Interface Implementations
| Improve this Doc View SourceIReplicationCluster.AuditTrail
Declaration
IAuditTrail IReplicationCluster.AuditTrail { get; }
Returns
Type | Description |
---|---|
IAuditTrail |