final case class Open(startedAt: Timestamp, resetTimeout: FiniteDuration) extends State with Product with Serializable
State of the TaskCircuitBreaker in which the circuit breaker rejects all tasks with an ExecutionRejectedException.
Contract:
- all tasks fail fast with
ExecutionRejectedException
- after the configured
resetTimeout
, the circuit breaker enters a HalfOpen state, allowing one task to go through for testing the connection
- startedAt
is the timestamp in milliseconds since the epoch when the transition to
Open
happened- resetTimeout
is the current
resetTimeout
that is applied to thisOpen
state, to be multiplied by the exponential backoff factor for the next transition fromHalfOpen
toOpen
, in case the reset attempt fails
- Source
- TaskCircuitBreaker.scala
- Alphabetic
- By Inheritance
- Open
- Serializable
- Serializable
- Product
- Equals
- State
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Open(startedAt: Timestamp, resetTimeout: FiniteDuration)
- startedAt
is the timestamp in milliseconds since the epoch when the transition to
Open
happened- resetTimeout
is the current
resetTimeout
that is applied to thisOpen
state, to be multiplied by the exponential backoff factor for the next transition fromHalfOpen
toOpen
, in case the reset attempt fails
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
expiresAt: Timestamp
The timestamp in milliseconds since the epoch, specifying when the
Open
state is to transition to HalfOpen.The timestamp in milliseconds since the epoch, specifying when the
Open
state is to transition to HalfOpen.It is calculated as:
startedAt + resetTimeout.toMillis
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val resetTimeout: FiniteDuration
- val startedAt: Timestamp
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.types implements type-class shims, to be translated to type-classes provided by libraries such as Cats or Scalaz.
monix.cats is the optional integration with the Cats library, providing translations for the types described in
monix.types
.monix.scalaz is the optional integration with the Scalaz library, providing translations for the types described in
monix.types
.