Object/Class

org.squbs.streams.circuitbreaker.impl

AtomicCircuitBreakerState

Related Docs: class AtomicCircuitBreakerState | package impl

Permalink

object AtomicCircuitBreakerState

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AtomicCircuitBreakerState
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def apply(name: String, config: Config)(implicit system: ActorSystem): CircuitBreakerState

    Permalink

    Create a new AtomicCircuitBreakerState from configuration.

    Create a new AtomicCircuitBreakerState from configuration.

    name

    The unique name of this circuit breaker instance.

    config

    Configuration to look for the settings

    system

    ActorSystem

  5. def apply(name: String, maxFailures: Int, callTimeout: FiniteDuration, resetTimeout: FiniteDuration, maxResetTimeout: FiniteDuration = 36500.days, exponentialBackoffFactor: Double = 1.0)(implicit executor: ExecutionContext, scheduler: Scheduler): CircuitBreakerState

    Permalink

    Create a new CircuitBreaker.

    Create a new CircuitBreaker.

    Callbacks run in caller's thread when using withSyncCircuitBreaker, and in same ExecutionContext as the passed in Future when using withCircuitBreaker. To use another ExecutionContext for the callbacks you can specify the executor in the constructor.

    maxFailures

    Maximum number of failures before opening the circuit

    callTimeout

    scala.concurrent.duration.FiniteDuration of time after which to consider a call a failure

    resetTimeout

    scala.concurrent.duration.FiniteDuration of time after which to attempt to close the circuit

    maxResetTimeout

    the upper bound of resetTimeout

    exponentialBackoffFactor

    The exponential amount that the wait time will be increased

  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def create(name: String, config: Config, system: ActorSystem): CircuitBreakerState

    Permalink

    Java API

    Java API

    Create a new Circuit Breaker from configuration.

    name

    The unique name of this circuit breaker instance.

    config

    Configuration to look for the settings

    system

    ActorSystem

  9. def create(name: String, maxFailures: Int, callTimeout: FiniteDuration, resetTimeout: FiniteDuration, maxResetTimeout: FiniteDuration, exponentialBackoffFactor: Double, executor: ExecutionContext, scheduler: Scheduler): CircuitBreakerState

    Permalink

    Java API

    Java API

    Create a new AtomicCircuitBreakerState with exponential backoff strategy.

    The resetTimeout will be increased exponentially for each failed attempt to close the circuit.

    maxFailures

    Maximum number of failures before opening the circuit

    callTimeout

    scala.concurrent.duration.FiniteDuration of time after which to consider a call a failure

    resetTimeout

    scala.concurrent.duration.FiniteDuration of time after which to attempt to close the circuit

    maxResetTimeout

    the upper bound of resetTimeout

    exponentialBackoffFactor

    The exponential amount that the wait time will be increased

  10. def create(name: String, maxFailures: Int, callTimeout: FiniteDuration, resetTimeout: FiniteDuration, executor: ExecutionContext, scheduler: Scheduler): CircuitBreakerState

    Permalink

    Java API

    Java API

    Create a new AtomicCircuitBreakerState.

    maxFailures

    Maximum number of failures before opening the circuit

    callTimeout

    scala.concurrent.duration.FiniteDuration of time after which to consider a call a failure

    resetTimeout

    scala.concurrent.duration.FiniteDuration of time after which to attempt to close the circuit

  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped