Package

io.github

finaglecircuit

Permalink

package finaglecircuit

Visibility
  1. Public
  2. All

Type Members

  1. class AkkaCircuitBreaker extends CircuitBreaker

    Permalink
  2. trait CircuitBreaker extends AnyRef

    Permalink
  3. class CircuitBreaking extends SimpleFilter[Request, Response]

    Permalink

    An HTTP filter which adds circuit breaking to any service.

    An HTTP filter which adds circuit breaking to any service. CAn be used on service or client side. Converts unexpected exceptions and broken circuit problems into 503 errors to the upstream client.

  4. case class CircuitBroken(circuitName: CircuitName, reason: String) extends Exception with Product with Serializable

    Permalink

    The exception thrown from the circuit breaker when the circuit is open.

    The exception thrown from the circuit breaker when the circuit is open.

    circuitName

    the name

    reason

    detail about why this exception was raised

  5. case class CircuitConfig(circuitName: CircuitName, timeout: Duration, downTime: Duration, failLimit: Int) extends Product with Serializable

    Permalink

    Configuration of a circuit.

    Configuration of a circuit.

    circuitName

    the name of the circuit (or downstream system) to use.

    timeout

    the duration after which a call will be counted as a failure.

    downTime

    when the circuit is broken, it will not attempt to pass through any traffic for at least this amount of time.

    failLimit

    the number of consecutive failures before tripping the circuit.

  6. final case class CircuitName(value: String) extends AnyVal with Product with Serializable

    Permalink
  7. case class CircuitStateChange(circuitName: CircuitName, state: CircuitStatus) extends Product with Serializable

    Permalink

Value Members

  1. object CircuitConfig extends Serializable

    Permalink
  2. object CircuitStatus extends Enumeration

    Permalink

    Circuit states.

    Circuit states. Of note is HalfOpen: - The first call attempted is allowed through without failing fast - All other calls fail-fast with an exception just as in Open state - If the first call succeeds, the breaker is reset back to Closed state - If the first call fails, the breaker is tripped again into the Open state for another full resetTimeout

  3. package test

    Permalink
  4. package util

    Permalink

Ungrouped