Packages

object RetryBudget

See RetryBudgets for Java APIs.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RetryBudget
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val Empty: RetryBudget

    An immutable RetryBudget that never has a balance, and as such, will never allow a retry.

  5. val Infinite: RetryBudget

    An immutable RetryBudget that always has a balance of 100, and as such, will always allow a retry.

  6. def apply(ttl: Duration, minRetriesPerSec: Int, percentCanRetry: Double, nowMillis: () => Long = Stopwatch.systemMillis): RetryBudget

    Creates a RetryBudget that allows for about percentCanRetry percent of the total requests to be retried.

    Creates a RetryBudget that allows for about percentCanRetry percent of the total requests to be retried.

    ttl

    Deposits created by deposit() expire after approximately ttl time has passed. Must be >= 1 second and <= 60 seconds.

    minRetriesPerSec

    the minimum rate of retries allowed in order to accommodate clients that have just started issuing requests as well as clients that do not issue many requests per window. Must be non-negative and if 0, then no reserve is given.

    percentCanRetry

    the percentage of calls to deposit() that can be retried. This is in addition to any retries allowed for via minRetriesPerSec. Must be >= 0 and <= 1000. As an example, if 0.1 is used, then for every 10 calls to deposit(), 1 retry will be allowed. If 2.0 is used then every deposit allows for 2 retries.

    nowMillis

    the current time in milliseconds since the epoch. The default of Stopwatch.systemMillis is generally appropriate, though using Stopwatch.timeMillis is useful for well behaved tests so that you can control com.twitter.util.Time.

  7. def apply(): RetryBudget

    Creates a default RetryBudget that allows for about 20% of the total requests to be retried on top of a minimum number per second in order to accommodate clients that have just started issuing requests or clients that have a low rate of requests per second.

    Creates a default RetryBudget that allows for about 20% of the total requests to be retried on top of a minimum number per second in order to accommodate clients that have just started issuing requests or clients that have a low rate of requests per second.

    Deposits created by deposit() expire after some amount of time. There is also a minimum reserve of retries allowed per time period in order to accommodate clients that have just started issuing requests as well as clients that do not issue many requests per window.

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped