Table of Contents

Interface ILeaderProcessingGate

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

A processing gate that additionally exposes a fencing token for the current processing cycle, so callers can fence downstream mutations to the current tenure.

public interface ILeaderProcessingGate : IProcessingGate
Inherited Members
Extension Methods

Remarks

FencingToken is independent of ShouldProcess: the latter is the authorization decision (should this cycle run at all), while the former is the value to stamp on any protected mutation performed during this cycle. A null token means no fencing applies to this instance — for example, single-instance deployments or configurations with no leader election — and any consumer of the token must treat null as "no fencing", never as "processing is disallowed".

Properties

FencingToken

Gets the fencing token to stamp on this cycle's protected mutations.

long? FencingToken { get; }

Property Value

long?

The fencing token for the current tenure, or null when no fencing applies (for example, a single-instance deployment or no leader election configured).