CircuitBreakerInterceptor class

Scope an instance to a single backend. One probe is allowed after cooldown.

Implemented types

Constructors

CircuitBreakerInterceptor({int failureThreshold = 5, Duration breakDuration = const Duration(seconds: 30), DateTime clock()?})

Properties

breakDuration → Duration
final
failureThreshold → int
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

intercept(HttpRequest request, CancellationToken token, HttpRequestHandler next) → Future<HttpResponse>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited