Object/Trait

com.twitter.finagle.service.exp

FailureAccrualPolicy

Related Docs: trait FailureAccrualPolicy | package exp

Permalink

object FailureAccrualPolicy

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FailureAccrualPolicy
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def consecutiveFailures(numFailures: Int, markDeadFor: Stream[Duration]): FailureAccrualPolicy

    Permalink

    A policy based on a maximum number of consecutive failures.

    A policy based on a maximum number of consecutive failures. If numFailures occur consecutively, checkFailures() will return a Some(Duration) to mark an endpoint dead for.

    numFailures

    number of consecutive failures

    markDeadFor

    stream of durations to use for the next duration returned from markDeadOnFailure()

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def successRate(requiredSuccessRate: Double, window: Int, markDeadFor: Stream[Duration]): FailureAccrualPolicy

    Permalink

    A policy based on an exponentially-weighted moving average success rate over a window of requests.

    A policy based on an exponentially-weighted moving average success rate over a window of requests. A moving average is used so the success rate calculation is biased towards more recent requests; for an endpoint with low traffic, the window will span a longer time period and early successes and failures may not accurately reflect the current health.

    If the computed weighted success rate is less than the required success rate, markDeadOnFailure() will return Some(Duration).

    requiredSuccessRate

    successRate that must be met

    window

    window over which the success rate is tracked. window requests must occur for markDeadOnFailure() to ever return Some(Duration)

    markDeadFor

    stream of durations to use for the next duration returned from markDeadOnFailure()

    See also

    com.twitter.finagle.util.Ema for how the succes rate is computed

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped