Table of Contents

Class DistributedCircuitBreakerOptions

Namespace
Excalibur.Dispatch.Resilience.Polly
Assembly
Excalibur.Dispatch.Resilience.Polly.dll

Options for distributed circuit breaker.

public sealed class DistributedCircuitBreakerOptions
Inheritance
DistributedCircuitBreakerOptions
Inherited Members
Extension Methods

Properties

BreakDuration

Gets or sets duration the circuit remains open.

public TimeSpan BreakDuration { get; set; }

Property Value

TimeSpan

The duration the circuit remains in the open state before transitioning to half-open.

ConsecutiveFailureThreshold

Gets or sets consecutive failures to trigger open state.

[Range(1, 2147483647)]
public int ConsecutiveFailureThreshold { get; set; }

Property Value

int

The number of consecutive failures required to trigger the open state.

FailureRatio

Gets or sets failure ratio threshold (0.0 to 1.0).

[Range(0, 1)]
public double FailureRatio { get; set; }

Property Value

double

The failure ratio threshold between 0.0 and 1.0 that triggers circuit breaking.

MinimumThroughput

Gets or sets minimum number of requests before evaluating failure ratio.

[Range(1, 2147483647)]
public int MinimumThroughput { get; set; }

Property Value

int

The minimum number of requests required before failure ratio evaluation.

SamplingDuration

Gets or sets duration to sample for failure ratio calculation.

public TimeSpan SamplingDuration { get; set; }

Property Value

TimeSpan

The duration over which to sample requests for failure ratio calculation.

SuccessThresholdToClose

Gets or sets consecutive successes needed to close from half-open.

[Range(1, 2147483647)]
public int SuccessThresholdToClose { get; set; }

Property Value

int

The number of consecutive successes needed to transition from half-open to closed.

SyncInterval

Gets or sets interval for syncing distributed state.

public TimeSpan SyncInterval { get; set; }

Property Value

TimeSpan

The interval at which distributed circuit breaker state is synchronized.