DVHttpBreakerPolicy class
When a host's breaker opens, and how long it stays open.
Constructors
- DVHttpBreakerPolicy({double failureRate = 0.5, Duration window = const Duration(seconds: 30), Duration cooldown = const Duration(seconds: 60), int minimumRequests = 5})
-
const
Properties
- cooldown → Duration
-
final
- failureRate → double
-
The share of requests in window that must fail for it to open.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- minimumRequests → int
-
Fewer requests than this in the window never open it: one failure out of
one request is a rate of 100% and tells you nothing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- window → Duration
-
final
Methods
-
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