c

com.couchbase.client.scala.env

CircuitBreakerConfig

case class CircuitBreakerConfig(enabled: Boolean = core.endpoint.CircuitBreakerConfig.DEFAULT_ENABLED, volumeThreshold: Int = core.endpoint.CircuitBreakerConfig.DEFAULT_VOLUME_THRESHOLD, errorThresholdPercentage: Int = core.endpoint.CircuitBreakerConfig.DEFAULT_ERROR_THRESHOLD_PERCENTAGE, sleepWindow: Duration = core.endpoint.CircuitBreakerConfig.DEFAULT_SLEEP_WINDOW, rollingWindow: Duration = core.endpoint.CircuitBreakerConfig.DEFAULT_ROLLING_WINDOW) extends Product with Serializable

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

Since

1.0.0

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

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(classOf[java.lang.CloneNotSupportedException]) @native()
  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[_ <: AnyRef]
    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 productElementNames: Iterator[String]
    Definition Classes
    Product
  16. 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.

  17. 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.

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. 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.

  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped