![]() | CircuitBreaker Methods |
The CircuitBreaker type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Create |
Create a new CircuitBreaker
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnClose |
Adds a callback to execute when circuit breaker state closes
|
![]() | OnHalfOpen |
Adds a callback to execute when circuit breaker transitions to half-open
|
![]() | OnOpen |
Adds a callback to execute when circuit breaker opens
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WithCircuitBreaker(FuncTask) |
Wraps invocation of asynchronous calls that need to be protected
|
![]() | WithCircuitBreakerT(FuncTaskT) |
Wraps invocation of asynchronous calls that need to be protected
|
![]() | WithSyncCircuitBreaker(Action) |
The failure will be recorded farther down.
|
![]() | WithSyncCircuitBreakerT(FuncT) |
Wraps invocations of asynchronous calls that need to be protected
If this does not complete within the time allotted, it should return default(T)
Await.result( withCircuitBreaker(try Future.successful(body) catch { case NonFatal(t) ⇒ Future.failed(t) }), callTimeout) |
Name | Description | |
---|---|---|
![]() | AsInstanceOfT |
TBD
(Defined by Extensions.) |
![]() | Match | Overloaded.
Matches the specified target.
(Defined by PatternMatch.) |
![]() | MatchT | Overloaded.
Matches the specified target and return a result of target processing.
(Defined by PatternMatch.) |