Orleans.Lattice.Api.Replication
This page documents Orleans.Lattice.Api.Abstractions 10.5.0, in the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at orleans-lattice-api-replication.md, and llms.txt lists every page.
Part of Public API.
Implemented by Orleans.Lattice.Api.Replication and exposed remotely by Orleans.Lattice.Api.Replication.Grpc. 18 public types.
| Type | Kind | Summary |
|---|---|---|
ILatticeReplicationControl |
interface | Transport-agnostic control facade for runtime per-tree cross-cluster replication configuration. |
ILatticeReplicationPeerAdmin |
interface | Transport-agnostic facade over the cluster-wide peer decommission verb. |
ILatticeReplicationStatus |
interface | Transport-agnostic, read-only facade over the per-peer replication link status a replication-enabled cluster tracks: for each replicated tree and each peer region, in each direction, the outstanding backlog, the error streak, the time since the last successful contact, the in-flight batch count, and a derived ReplicationLinkHealth. |
ApiReplicationTypeAliases |
static class | Centralized Orleans serialization alias constants for the replication control-API surface (the transport-agnostic contract in Orleans.Lattice.Api.Abstractions and the sibling gRPC / MCP bindings that reuse this registry). |
LatticeReplicationEngineNotHostedException |
sealed class (exception) | Thrown by DecommissionPeerAsync when the caller is authorized but no replication engine is hosted in this process, so there is no ILatticeReplicationPeerDecommissioner to carry the decommission out. |
ReplicationCapabilities |
sealed record | The read-only result of a replication capability probe (ProbeCapabilitiesAsync): whether the current caller may configure replication for one tree, evaluated through the same fail-closed LatticeOperation.Replication gate the real enable and disable use, but with no side effects. |
ReplicationConfigReport |
sealed record | An operator-facing report of the effective replicated-tree set: one ReplicationTreeConfigEntry per enrolled tree the caller is authorized to see. |
ReplicationDecommissionPeerResult |
sealed record | The transport-agnostic outcome of a DecommissionPeerAsync call. |
ReplicationDisableResult |
sealed record | The transport-agnostic outcome of a DisableReplicationAsync call. |
ReplicationEnableResult |
sealed record | The transport-agnostic outcome of an EnableReplicationAsync call. |
ReplicationEnrollmentSource |
enum | Which enrollment source put a tree's reported replication configuration in force: the runtime config tree authored through EnableReplicationAsync, or the static replicated-tree map supplied as deployment configuration. |
ReplicationLinkDirection |
enum | Which way a replication link carries entries, relative to the region that produced the report. |
ReplicationLinkHealth |
enum | The health of one replication link, derived by the status facade from the link's backlog, error streak and time since last contact against configured thresholds. |
ReplicationLinkStallReason |
enum | The operator-actionable cause of a stalled replication link. |
ReplicationPeerStatusEntry |
sealed record | The status of one replication link - one tree, one peer region, one direction - carried in a ReplicationPeerStatusPage. |
ReplicationPeerStatusPage |
sealed record | One page of per-peer replication link status, returned by GetPeerStatusAsync. |
ReplicationPeerStatusQuery |
sealed record | The query for GetPeerStatusAsync: optional tree and peer-region filters, a page size, and an opaque continuation from a previous page. |
ReplicationTreeConfigEntry |
sealed record | A read-only projection of a single tree's effective replication configuration, carried in a ReplicationConfigReport returned by GetReplicationConfigAsync. |
ILatticeReplicationControl
Source (line 31).
public interface ILatticeReplicationControl
Task<ReplicationEnableResult> EnableReplicationAsync(string treeId, LatticeMergeMode mode, string? bootstrapSourceClusterId = null, CancellationToken cancellationToken = default)Task<ReplicationDisableResult> DisableReplicationAsync(string treeId, CancellationToken cancellationToken = default)Task<ReplicationConfigReport> GetReplicationConfigAsync(CancellationToken cancellationToken = default)Task<ReplicationCapabilities> ProbeCapabilitiesAsync(string treeId, CancellationToken cancellationToken = default)
ILatticeReplicationPeerAdmin
Source (line 13).
public interface ILatticeReplicationPeerAdmin
Task<ReplicationDecommissionPeerResult> DecommissionPeerAsync(string peerClusterId, CancellationToken cancellationToken = default)
ILatticeReplicationStatus
Source (line 47).
public interface ILatticeReplicationStatus
Task<ReplicationPeerStatusPage> GetPeerStatusAsync(ReplicationPeerStatusQuery query, CancellationToken cancellationToken = default)
ApiReplicationTypeAliases
Source (line 17).
public static class ApiReplicationTypeAliases
public const string AliasPrefixpublic const string ReplicationConfigReportpublic const string ReplicationTreeConfigEntrypublic const string ReplicationEnableResultpublic const string ReplicationDisableResultpublic const string ReplicationEnrollmentSourcepublic const string ReplicationPeerStatusQuerypublic const string ReplicationPeerStatusPagepublic const string ReplicationPeerStatusEntrypublic const string ReplicationLinkHealthpublic const string ReplicationLinkDirectionpublic const string ReplicationLinkStallReasonpublic const string ReplicationDecommissionPeerResultpublic const string LatticeReplicationEngineNotHostedExceptionpublic const string ReplicationCapabilities
LatticeReplicationEngineNotHostedException
Source (line 26).
public sealed class LatticeReplicationEngineNotHostedException : InvalidOperationException, ILatticeDomainFault
public LatticeReplicationEngineNotHostedException()public LatticeReplicationEngineNotHostedException(string message)public LatticeReplicationEngineNotHostedException(string message, Exception innerException)
ReplicationCapabilities
Source (line 20).
public sealed record ReplicationCapabilities
public ReplicationCapabilities(string treeId, bool canConfigure)public string TreeId { get; init; }public bool CanConfigure { get; init; }
ReplicationConfigReport
Source (line 27).
public sealed record ReplicationConfigReport
public ReplicationConfigReport(IReadOnlyList<ReplicationTreeConfigEntry> trees)public IReadOnlyList<ReplicationTreeConfigEntry> Trees { get; init; }public static ReplicationConfigReport Empty { get; }
ReplicationDecommissionPeerResult
Source (line 16).
public sealed record ReplicationDecommissionPeerResult
public ReplicationDecommissionPeerResult(string peerClusterId, int treeCount, bool alreadyDecommissioned)public string PeerClusterId { get; init; }public int TreeCount { get; init; }public bool AlreadyDecommissioned { get; init; }
ReplicationDisableResult
Source (line 15).
public sealed record ReplicationDisableResult
public ReplicationDisableResult(string treeId, bool alreadyDisabled)public string TreeId { get; init; }public bool AlreadyDisabled { get; init; }
ReplicationEnableResult
Source (line 13).
public sealed record ReplicationEnableResult
public ReplicationEnableResult(string treeId, LatticeMergeMode mode, bool alreadyEnabled, bool bootstrapRequested)public string TreeId { get; init; }public LatticeMergeMode Mode { get; init; }public bool AlreadyEnabled { get; init; }public bool BootstrapRequested { get; init; }
ReplicationEnrollmentSource
Source (line 21).
public enum ReplicationEnrollmentSource
RuntimeStaticRuntimeAndStatic
ReplicationLinkDirection
Source (line 11).
public enum ReplicationLinkDirection
OutboundInbound
ReplicationLinkHealth
Source (line 10).
public enum ReplicationLinkHealth
UnknownHealthyLaggingStalled
ReplicationLinkStallReason
Source (line 6).
public enum ReplicationLinkStallReason
ReseedRequiredDeadLetterQueueFull
ReplicationPeerStatusEntry
Source (line 13).
public sealed record ReplicationPeerStatusEntry
public ReplicationPeerStatusEntry(string treeId, string peerRegionId, ReplicationLinkDirection direction, long entriesBehind, long bytesBehind, long consecutiveErrors, TimeSpan? timeSinceLastContact, long inFlight, ReplicationLinkHealth health)public string TreeId { get; init; }public string PeerRegionId { get; init; }public ReplicationLinkDirection Direction { get; init; }public long EntriesBehind { get; init; }public long BytesBehind { get; init; }public long ConsecutiveErrors { get; init; }public TimeSpan? TimeSinceLastContact { get; init; }public long InFlight { get; init; }public ReplicationLinkHealth Health { get; init; }public ReplicationLinkStallReason? StallReason { get; init; }
ReplicationPeerStatusPage
Source (line 14).
public sealed record ReplicationPeerStatusPage
public ReplicationPeerStatusPage(string localRegionId, IReadOnlyList<ReplicationPeerStatusEntry> peers, string? continuationToken)public string LocalRegionId { get; init; }public IReadOnlyList<ReplicationPeerStatusEntry> Peers { get; init; }public string? ContinuationToken { get; init; }public static ReplicationPeerStatusPage Empty(string localRegionId)
ReplicationPeerStatusQuery
Source (line 11).
public sealed record ReplicationPeerStatusQuery
public const int DefaultPageSizepublic const int MaxPageSizepublic static ReplicationPeerStatusQuery All { get; }public string? TreeId { get; init; }public string? PeerRegionId { get; init; }public int PageSize { get; init; }public string? ContinuationToken { get; init; }public int ResolvePageSize()
ReplicationTreeConfigEntry
Source (line 17).
public sealed record ReplicationTreeConfigEntry
public ReplicationTreeConfigEntry(string treeId, bool enabled, LatticeMergeMode? mode, bool ambiguous)public string TreeId { get; init; }public bool Enabled { get; init; }public LatticeMergeMode? Mode { get; init; }public bool Ambiguous { get; init; }public ReplicationEnrollmentSource Source { get; init; }