object TrippingStrategy
- Alphabetic
- By Inheritance
- TrippingStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failureCount(maxFailures: Int): ZIO[Scope, Nothing, TrippingStrategy]
For a CircuitBreaker that fails when a number of successive failures (no pun intended) has been counted
For a CircuitBreaker that fails when a number of successive failures (no pun intended) has been counted
- maxFailures
Maximum number of failures before tripping the circuit breaker
- def failureRate(failureRateThreshold: Double = 0.5, sampleDuration: zio.Duration = 1.minute, minThroughput: Int = 10, nrSampleBuckets: Int = 10): ZIO[Scope, Nothing, TrippingStrategy]
For a CircuitBreaker that fails when the fraction of failures in a sample period exceeds some threshold
For a CircuitBreaker that fails when the fraction of failures in a sample period exceeds some threshold
The sample interval is divided into a number of buckets, which are rotated periodically (sampleDuration / nrSampleBuckets) to achieve a moving average of the failure rate.
- failureRateThreshold
The minimum fraction (between 0.0 and 1.0) of calls that must fail within the sample duration for the circuit breaker to trip
- sampleDuration
Minimum amount of time to record calls
- minThroughput
Minimum number of calls required within the sample period to evaluate the actual failure rate.
- nrSampleBuckets
Nr of intervals to divide
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated