Class StaleFencingTokenException
- Namespace
- Excalibur.Dispatch.LeaderElection.Fencing
- Assembly
- Excalibur.Dispatch.LeaderElection.Abstractions.dll
Thrown by GuardAsync(long, CancellationToken) when the presented fencing token is below the highest token the resource has already observed — the Chubby/Lamport sequencer rule that rejects operations from a superseded leader. A token equal to that high-water mark is the incumbent leader re-presenting its pinned per-tenure token, so it is accepted and this exception is not thrown.
public sealed class StaleFencingTokenException : Exception, ISerializable
- Inheritance
-
StaleFencingTokenException
- Implements
- Inherited Members
- Extension Methods
Constructors
StaleFencingTokenException()
Initializes a new instance of the StaleFencingTokenException class.
public StaleFencingTokenException()
StaleFencingTokenException(string)
Initializes a new instance of the StaleFencingTokenException class with a message.
public StaleFencingTokenException(string message)
Parameters
messagestringThe error message.
StaleFencingTokenException(string, Exception)
Initializes a new instance of the StaleFencingTokenException class with a message and an inner exception.
public StaleFencingTokenException(string message, Exception innerException)
Parameters
Properties
HighWaterToken
Gets the highest fencing token previously observed by the guarded resource, when known.
public long? HighWaterToken { get; init; }
Property Value
- long?
PresentedToken
Gets the fencing token that was presented and rejected, when known.
public long? PresentedToken { get; init; }
Property Value
- long?