Packages

c

com.couchbase.client.scala.env

CircuitBreakerConfig

case class CircuitBreakerConfig(enabled: Boolean = ..., volumeThreshold: Int = ..., errorThresholdPercentage: Int = ..., sleepWindow: Duration = ..., rollingWindow: Duration = ...) extends Product with Serializable

Allows configuring a com.couchbase.client.core.endpoint.CircuitBreaker.

Since

1.0.0

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CircuitBreakerConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CircuitBreakerConfig(enabled: Boolean = ..., volumeThreshold: Int = ..., errorThresholdPercentage: Int = ..., sleepWindow: Duration = ..., rollingWindow: Duration = ...)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def enabled(enabled: Boolean): CircuitBreakerConfig

    Enables or disables this circuit breaker.

    Enables or disables this circuit breaker.

    If this property is set to false, then all other properties are not looked at.

    enabled

    if true enables it, if false disables it.

    returns

    this for chaining purposes.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def errorThresholdPercentage(errorThresholdPercentage: Int): CircuitBreakerConfig

    The percentage of operations that need to fail in a window until the circuit is opened.

    The percentage of operations that need to fail in a window until the circuit is opened.

    The default is 50.

    errorThresholdPercentage

    the percent of ops that need to fail.

    returns

    this for chaining purposes.

  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def rollingWindow(rollingWindow: Duration): CircuitBreakerConfig

    How long the window is in which the number of failed ops are tracked in a rolling fashion.

    How long the window is in which the number of failed ops are tracked in a rolling fashion.

    The default is 1 minute.

    rollingWindow

    the rolling window duration.

    returns

    this for chaining purposes.

  16. def sleepWindow(sleepWindow: Duration): CircuitBreakerConfig

    The sleep window that is waited from when the circuit opens to when the canary is tried.

    The sleep window that is waited from when the circuit opens to when the canary is tried.

    The default is 5 seconds.

    sleepWindow

    the sleep window as a duration.

    returns

    this for chaining purposes.

  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def volumeThreshold(volumeThreshold: Int): CircuitBreakerConfig

    The volume threshold defines how many operations need to be in the window at least so that the threshold percentage can be meaningfully calculated.

    The volume threshold defines how many operations need to be in the window at least so that the threshold percentage can be meaningfully calculated.

    The default is 20.

    volumeThreshold

    the volume threshold in the interval.

    returns

    this for chaining purposes.

  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped