Namespace Akka.Pattern
Classes
Backoff
Builds back-off options for creating a back-off supervisor. You can pass BackoffOptions to Props.
BackoffOptions
BackoffSupervisor
Actor used to supervise actors with ability to restart them after back-off timeout occurred. It's designed for cases when i.e. persistent actor stops due to journal unavailability or failure. In this case it is better to wait before restart.
BackoffSupervisor.CurrentChild
Send this message to the BackoffSupervisor and it will reply with BackoffSupervisor.CurrentChild containing the ActorRef
of the current child, if any.
BackoffSupervisor.GetCurrentChild
Send this message to the BackoffSupervisor and it will reply with BackoffSupervisor.CurrentChild containing the ActorRef
of the current child, if any.
BackoffSupervisor.GetRestartCount
BackoffSupervisor.Reset
Send this message to the BackoffSupervisor and it will reset the back-off. This should be used in conjunction with withManualReset
in Akka.Pattern.BackoffOptionsImpl.
BackoffSupervisor.ResetRestartCount
BackoffSupervisor.RestartCount
BackoffSupervisor.StartChild
BackoffSupervisorBase
TBD
CircuitBreaker
Provides circuit breaker functionality to provide stability when working with "dangerous" operations, e.g. calls to remote systems
Transitions through three states:
- In Closed state, calls pass through until the maxFailures count is reached. This causes the circuit breaker to open. Both exceptions and calls exceeding callTimeout are considered failures.
- In Open state, calls fail-fast with an exception. After resetTimeout, circuit breaker transitions to half-open state.
- In Half-Open state, the first call will be allowed through, if it succeeds the circuit breaker will reset to closed state. If it fails, the circuit breaker will re-open to open state. All calls beyond the first that execute while the first is running will fail-fast with an exception.
FutureTimeoutSupport
Used to help make it easier to schedule timeouts in conjunction with the built-in IScheduler
IllegalStateException
This exception is thrown when a method has been invoked at an illegal or inappropriate time.
OpenCircuitException
This exception is thrown when the CircuitBreaker is open.
RetrySupport
This class provides the retry utility functions.