CircuitBreaker class
Constructors
- CircuitBreaker({required Request request, int failureThreshold = 3, int successThreshold = 2, Duration timeout = const Duration(milliseconds: 3500)})
Properties
- client ↔ Client
-
Client HTTP
getter/setter pair
- failureThreshold → int
-
Failure threshold;
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nextAttempt → DateTime
-
Next attempt execution
no setter
- request → Request
-
Request
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → State
-
Current state
no setter
- successThreshold → int
-
Success threshold
final
- timeout → Duration
-
Timeout
final
Methods
-
execute(
) → Future< BaseResponse> - Execute
-
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