Click or drag to resize
Akka.NETAkka.Pattern Namespace
The Akka.Pattern namespace contains classes containing common usage patterns when interacting with actors.
Classes
  ClassDescription
Public classBackoff
Builds back-off options for creating a back-off supervisor. You can pass BackoffOptions to Props(Props, String, TimeSpan, TimeSpan, Double).
Public classBackoffOptions
Public classBackoffSupervisor
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 better to wait before restart.
Public classBackoffSupervisorCurrentChild
Send this message to the BackoffSupervisor and it will reply with BackoffSupervisorCurrentChild containing the `ActorRef` of the current child, if any.
Public classBackoffSupervisorGetCurrentChild
Send this message to the BackoffSupervisor and it will reply with BackoffSupervisorCurrentChild containing the `ActorRef` of the current child, if any.
Public classBackoffSupervisorGetRestartCount
Public classBackoffSupervisorReset
Send this message to the BackoffSupervisor and it will reset the back-off. This should be used in conjunction with `withManualReset` in BackoffOptionsImpl.
Public classBackoffSupervisorResetRestartCount
Public classBackoffSupervisorRestartCount
Public classBackoffSupervisorStartChild
Public classBackoffSupervisorBase
TBD
Public classCircuitBreaker
Provides circuit breaker functionality to provide stability when working with "dangerous" operations, e.g. calls to remote systems
  • 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.
Public classFutureTimeoutSupport
Used to help make it easier to schedule timeouts in conjunction with the built-in IScheduler
Public classIllegalStateException
This exception is thrown when a method has been invoked at an illegal or inappropriate time.
Public classOpenCircuitException
This exception is thrown when the CircuitBreaker is open.
Interfaces
  InterfaceDescription
Public interfaceIBackoffReset