Class ProjectionSessionOptions
- Namespace
- Excalibur.EventSourcing
- Assembly
- Excalibur.EventSourcing.Abstractions.dll
Configures how long a consistent read waits for a projection to catch up, and how often it looks.
public sealed class ProjectionSessionOptions
- Inheritance
-
ProjectionSessionOptions
- Inherited Members
Properties
Bound
Gets or sets how long a consistent read waits for the projection to reach the session token.
public TimeSpan Bound { get; set; }
Property Value
- TimeSpan
The bound. Defaults to 5 seconds. Must be between 50 milliseconds and 2 minutes.
Remarks
Reached while a projection is merely behind, this returns BoundExpired rather than throwing: the read still answers, and the caller decides whether slightly stale data is acceptable. Setting this high does not make a stopped projection start; it makes a request hang while one is stopped.
PollInterval
Gets or sets how often the read re-checks the projection's progress while waiting.
public TimeSpan PollInterval { get; set; }
Property Value
- TimeSpan
The poll interval. Defaults to 25 milliseconds. Must be between 1 millisecond and the bound.
Remarks
Polling rather than signalling is deliberate: the progress a read waits on can be made by ANOTHER PROCESS, which no in-process signal can observe. A signal would be faster and would silently fail to wake for exactly the multi-instance deployments this guarantee matters most in.