Class BulkheadOptions
- Namespace
- Excalibur.Dispatch.Resilience.Polly
- Assembly
- Excalibur.Dispatch.Resilience.Polly.dll
Bulkhead configuration options.
public sealed class BulkheadOptions
- Inheritance
-
BulkheadOptions
- Inherited Members
- Extension Methods
Properties
AllowQueueing
Gets or sets a value indicating whether to allow queueing when at capacity.
public bool AllowQueueing { get; set; }
Property Value
- bool
true to enqueue requests after the concurrency limit is reached; otherwise, false. Defaults to true.
MaxConcurrency
Gets or sets the maximum number of concurrent operations allowed.
[Range(1, 2147483647)]
public int MaxConcurrency { get; set; }
Property Value
- int
The upper bound on simultaneous operations permitted before requests are queued. Defaults to 10.
MaxQueueLength
Gets or sets the maximum number of operations that can be queued.
[Range(0, 2147483647)]
public int MaxQueueLength { get; set; }
Property Value
- int
The maximum queue depth allowed when concurrency is exhausted. Defaults to 50.
OperationTimeout
Gets or sets the timeout for individual operations.
public TimeSpan OperationTimeout { get; set; }
Property Value
- TimeSpan
The duration after which an in-flight operation is cancelled. Defaults to 30 seconds.
PrioritySelector
Gets or sets the priority selector for queued operations.
public Func<object?, int>? PrioritySelector { get; set; }