 | CircuitBreakerCreate Method |
Create a new CircuitBreaker
Namespace:
Akka.Pattern
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxpublic static CircuitBreaker Create(
int maxFailures,
TimeSpan callTimeout,
TimeSpan resetTimeout
)
static member Create :
maxFailures : int *
callTimeout : TimeSpan *
resetTimeout : TimeSpan -> CircuitBreaker
Parameters
- maxFailures
- Type: SystemInt32
Maximum number of failures before opening the circuit - callTimeout
- Type: SystemTimeSpan
TimeSpan of time after which to consider a call a failure - resetTimeout
- Type: SystemTimeSpan
TimeSpan of time after which to attempt to close the circuit
Return Value
Type:
CircuitBreakerTBD
See Also