CircuitBreakerConfig

ox.resilience.CircuitBreakerConfig
See theCircuitBreakerConfig companion object
case class CircuitBreakerConfig(failureRateThreshold: PercentageThreshold, slowCallThreshold: PercentageThreshold, slowCallDurationThreshold: FiniteDuration, slidingWindow: SlidingWindow, minimumNumberOfCalls: Int, waitDurationOpenState: FiniteDuration, halfOpenTimeoutDuration: FiniteDuration, numberOfCallsInHalfOpenState: Int)

Value parameters

failureRateThreshold

threshold, as percentage of operations that ended in failure

halfOpenTimeoutDuration

time out after which, if not enough calls where registered in half open state, breaker will go back to open state.

minimumNumberOfCalls

minimum number of results that must be registered before metrics are calculated.

numberOfCallsInHalfOpenState

number of results that must be registered to calculate metrics and decide if breaker should go back to open state or close. This is also maximum number of operations that can be started in half open state.

slidingWindow

configures how thresholds will be calculated. See SlidingWindow for more details.

slowCallDurationThreshold

time after which operation is considered slow.

slowCallThreshold

threshold, as percentage of operations that spanned more then slowCallDurationThreshold.

waitDurationOpenState

how much time will pass before breaker will switch from open to half open state.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product