CircuitBreakerWithSyncCircuitBreaker Method |
Name | Description | |
---|---|---|
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) |