object Implicits
Convenience implicit conversions to provide circuit-breaker aware management of the ask pattern,
either directly replacing the ask/? with askWithCircuitBreaker or with an extension method to the
Future result of an ask pattern to fail in case of
akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitOpenFailure response
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.0) Use akka.pattern.CircuitBreaker + ask instead
- Source
- askExtensions.scala
- Alphabetic
- By Inheritance
- Implicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
askWithCircuitBreaker(circuitBreakerProxy: ActorRef, message: Any, sender: ActorRef)(implicit executionContext: ExecutionContext, timeout: Timeout): Future[Any]
Wraps the
askmethod in akka.pattern.AskSupport method to convert failures connected to the circuit breaker being in open stateWraps the
askmethod in akka.pattern.AskSupport method to convert failures connected to the circuit breaker being in open state- Annotations
- @throws( ... )
-
def
askWithCircuitBreaker(circuitBreakerProxy: ActorRef, message: Any)(implicit executionContext: ExecutionContext, timeout: Timeout): Future[Any]
Wraps the
askmethod in akka.pattern.AskSupport method to convert akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitOpenFailure responses into a failure response caused by an akka.contrib.circuitbreaker.OpenCircuitExceptionWraps the
askmethod in akka.pattern.AskSupport method to convert akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitOpenFailure responses into a failure response caused by an akka.contrib.circuitbreaker.OpenCircuitException- Annotations
- @throws( ... )
-
implicit
def
askWithCircuitBreaker(actorRef: ActorRef): AskeableWithCircuitBreakerActor
Import this implicit method to get an extended versions of the
askpattern for akka.actor.ActorRef and akka.actor.ActorSelection converting akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitOpenFailure into a failure caused by an akka.contrib.circuitbreaker.OpenCircuitException -
implicit
def
futureExtensions(future: Future[Any]): CircuitBreakerAwareFuture
Import this implicit to enable the methods
failForOpenCircuitandfailForOpenCircuitWithto scala.concurrent.Future converting akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitOpenFailure into a failure caused either by an akka.contrib.circuitbreaker.OpenCircuitException or by an exception built with the given exception builder