abstract class FailureAccrualPolicy extends AnyRef
A FailureAccrualPolicy
is used by FailureAccrualFactory
to determine
whether to mark an endpoint dead upon a request failure. On each successful
response, FailureAccrualFactory
calls recordSuccess()
. On each failure,
FailureAccrualFactory
calls markDeadOnFailure()
to obtain the duration
to mark the endpoint dead for; (Some(Duration)), or None.
- Self Type
- FailureAccrualPolicy
- See also
The user guide for more details.
- Alphabetic
- By Inheritance
- FailureAccrualPolicy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FailureAccrualPolicy()
Abstract Value Members
- abstract def markDeadOnFailure(): Option[Duration]
Invoked by FailureAccrualFactory when a non-probing request fails.
Invoked by FailureAccrualFactory when a non-probing request fails. If it returns Some(Duration), the FailureAccrualFactory will mark the endpoint dead for the specified Duration.
- abstract def name: String
Name of the policy.
- abstract def recordSuccess(): Unit
Invoked by FailureAccrualFactory when a request is successful.
- abstract def revived(): Unit
Invoked by FailureAccrualFactory when an endpoint is revived after probing.
Invoked by FailureAccrualFactory when an endpoint is revived after probing. Used to reset any history.
- abstract def show(): String
Concrete 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()
- 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
- 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()
- final def orElse(that: FailureAccrualPolicy): FailureAccrualPolicy
Creates a FailureAccrualPolicy which uses both
this
andthat
.Creates a FailureAccrualPolicy which uses both
this
andthat
.markDeadOnFailure will return the longer duration if both
this
andthat
return Some(duration). - 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()