Packages

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Implicits
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def askWithCircuitBreaker(circuitBreakerProxy: ActorRef, message: Any, sender: ActorRef)(implicit executionContext: ExecutionContext, timeout: Timeout): Future[Any]

    Wraps the ask method in akka.pattern.AskSupport method to convert failures connected to the circuit breaker being in open state

    Wraps the ask method in akka.pattern.AskSupport method to convert failures connected to the circuit breaker being in open state

    Annotations
    @throws( ... )
  2. def askWithCircuitBreaker(circuitBreakerProxy: ActorRef, message: Any)(implicit executionContext: ExecutionContext, timeout: Timeout): Future[Any]

    Wraps the ask method in akka.pattern.AskSupport method to convert akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitOpenFailure responses into a failure response caused by an akka.contrib.circuitbreaker.OpenCircuitException

    Wraps the ask method 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( ... )
  3. implicit def askWithCircuitBreaker(actorRef: ActorRef): AskeableWithCircuitBreakerActor

    Import this implicit method to get an extended versions of the ask pattern for akka.actor.ActorRef and akka.actor.ActorSelection converting akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitOpenFailure into a failure caused by an akka.contrib.circuitbreaker.OpenCircuitException

  4. implicit def futureExtensions(future: Future[Any]): CircuitBreakerAwareFuture

    Import this implicit to enable the methods failForOpenCircuit and failForOpenCircuitWith to 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