Object/Class

akka.contrib.circuitbreaker

CircuitBreakerProxy

Related Docs: class CircuitBreakerProxy | package circuitbreaker

Permalink

object CircuitBreakerProxy

This is an Actor which implements the circuit breaker pattern, you may also be interested in the raw circuit breaker akka.pattern.CircuitBreaker

Annotations
@deprecated
Deprecated

(Since version 2.5.0) Use akka.pattern.CircuitBreaker + ask instead

Source
CircuitBreakerProxy.scala
Linear Supertypes
AnyRef, Any
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CircuitBreakerProxy
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CircuitBreakerCommand extends AnyRef

    Permalink
  2. sealed trait CircuitBreakerEvent extends AnyRef

    Permalink
  3. final case class CircuitBreakerPropsBuilder(maxFailures: Int, callTimeout: Timeout, resetTimeout: Timeout, circuitEventListener: Option[ActorRef] = None, failureDetector: (Any) ⇒ Boolean = _ ⇒ false, openCircuitFailureConverter: (CircuitOpenFailure) ⇒ Any = identity) extends Product with Serializable

    Permalink
  4. sealed trait CircuitBreakerResponse extends AnyRef

    Permalink
  5. sealed trait CircuitBreakerState extends AnyRef

    Permalink
  6. final case class CircuitBreakerStateData(failureCount: Int = 0, firstHalfOpenMessageSent: Boolean = false) extends Product with Serializable

    Permalink
  7. final case class CircuitClosed(circuit: ActorRef) extends CircuitBreakerCommand with Product with Serializable

    Permalink
  8. final case class CircuitHalfOpen(circuit: ActorRef) extends CircuitBreakerCommand with Product with Serializable

    Permalink
  9. final case class CircuitOpen(circuit: ActorRef) extends CircuitBreakerCommand with Product with Serializable

    Permalink
  10. final case class CircuitOpenFailure(failedMsg: Any) extends Product with Serializable

    Permalink
  11. final case class Passthrough(msg: Any) extends CircuitBreakerCommand with Product with Serializable

    Permalink
  12. final case class TellOnly(msg: Any) extends CircuitBreakerCommand with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Closed extends CircuitBreakerState with Product with Serializable

    Permalink
  5. object HalfOpen extends CircuitBreakerState with Product with Serializable

    Permalink
  6. object Open extends CircuitBreakerState with Product with Serializable

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def props(target: ActorRef, maxFailures: Int, callTimeout: Timeout, resetTimeout: Timeout, circuitEventListener: Option[ActorRef], failureDetector: (Any) ⇒ Boolean, failureMap: (CircuitOpenFailure) ⇒ Any): Props

    Permalink

    Creates an circuit breaker actor proxying a target actor intended for request-reply interactions.

    Creates an circuit breaker actor proxying a target actor intended for request-reply interactions. It is possible to send messages through this proxy without expecting a response wrapping them into a akka.contrib.circuitbreaker.CircuitBreakerProxy.TellOnly or a akka.contrib.circuitbreaker.CircuitBreakerProxy.Passthrough the difference between the two being that a message wrapped into a akka.contrib.circuitbreaker.CircuitBreakerProxy.Passthrough is going to be forwarded even when the circuit is open (e.g. if you need to terminate the target and proxy actors sending a akka.actor.PoisonPill message)

    The circuit breaker implements the same state machine documented in akka.pattern.CircuitBreaker

    target

    the actor to proxy

    maxFailures

    maximum number of failures before opening the circuit

    callTimeout

    timeout before considering the ongoing call a failure

    resetTimeout

    time after which the channel will be closed after entering the open state

    circuitEventListener

    an actor that will receive a series of messages of type akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitBreakerEvent (optional)

    failureDetector

    function to detect if a message received from the target actor as a response from the request represents a failure

    failureMap

    function to map a failure into a response message. The failing response message is wrapped into a akka.contrib.circuitbreaker.CircuitBreakerProxy.CircuitOpenFailure object

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped