object FailureAccrualFactory
- Alphabetic
- By Inheritance
- FailureAccrualFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait Param extends AnyRef
An ADT representing a FailureAccrualFactorys Stack.Param, which is one of the following:
An ADT representing a FailureAccrualFactorys Stack.Param, which is one of the following:
1. Param.Configured - configures failure accrual 2. Param.Replaced - replaces the standard implementation with the given one 3. Param.Disabled - completely disables this role in the underlying stack
- sealed trait State extends AnyRef
- Attributes
- protected[finagle]
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
- def Param(failureAccrualPolicy: () => FailureAccrualPolicy): Param
Configures the FailureAccrualFactory.
Configures the FailureAccrualFactory.
- failureAccrualPolicy
The policy to use to determine when to mark an endpoint as dead.
- See also
The user guide for more details.
- def Param(numFailures: Int, markDeadFor: Duration): Param
Configures the FailureAccrualFactory.
Configures the FailureAccrualFactory.
- numFailures
The number of consecutive failures before marking an endpoint as dead.
- markDeadFor
The duration to mark an endpoint as dead.
- See also
The user guide for more details.
- def Param(numFailures: Int, markDeadFor: () => Duration): Param
Configures the FailureAccrualFactory.
Configures the FailureAccrualFactory.
Note there is a Java-friendly method in the API that takes
Duration
as a value, not a function.- numFailures
The number of consecutive failures before marking an endpoint as dead.
- markDeadFor
The duration to mark an endpoint as dead.
- See also
The user guide for more details.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def module[Req, Rep]: Stackable[ServiceFactory[Req, Rep]]
Creates a com.twitter.finagle.Stackable com.twitter.finagle.liveness.FailureAccrualFactory.
- 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()
- def perturb(markDeadFor: Duration, perturbation: Float = 0.1f, rand: Random = rng): () => Duration
Add jitter in
markDeadFor
to reduce correlation.Add jitter in
markDeadFor
to reduce correlation. Return a () => Duration type that can be used in Param. - val role: Role
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- object Alive extends State
- Attributes
- protected[finagle]
- object Dead extends State
- Attributes
- protected[finagle]
- object ProbeClosed extends State
- Attributes
- protected[finagle]
- object ProbeOpen extends State
- Attributes
- protected[finagle]