Packages

o

com.twitter.finagle.client

BackupRequestFilter

object BackupRequestFilter

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

Type Members

  1. case class Histogram(lowestDiscernibleMsValue: Int, highestTrackableMsValue: Int) extends Product with Serializable

    Define the bounds of values tracked by the histogram.

    Define the bounds of values tracked by the histogram.

    Note: this is an expert-level API; the defaults work well for the typical user.

    lowestDiscernibleMsValue

    The lowest value in milliseconds that can be discerned by the histogram.

    highestTrackableMsValue

    The highest value in milliseconds to be tracked by the histogram..

  2. sealed trait Param extends AnyRef

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. def Configured(maxExtraLoad: Tunable[Double], sendInterrupts: Boolean): Param
  5. def Configured(maxExtraLoad: Tunable[Double], sendInterrupts: Boolean, minSendBackupAfterMs: Int): Param

    Configure BackupRequestFilter.

    Configure BackupRequestFilter.

    maxExtraLoad

    How much extra load, as a fraction, we are willing to send to the server. Must be between 0.0 and 1.0.

    sendInterrupts

    Whether or not to interrupt the original or backup request when a response is returned and the result of the outstanding request is superseded. For protocols without a control plane, where the connection is cut on interrupts, this should be "false" to avoid connection churn.

    minSendBackupAfterMs

    Use a minimum non-zero delay to prevent sending unnecessary backup requests immediately for services where the latency at the percentile where a backup will be sent is ~0ms.

  6. def Configured(maxExtraLoad: Double, sendInterrupts: Boolean): Param

    Configure BackupRequestFilter.

    Configure BackupRequestFilter.

    maxExtraLoad

    How much extra load, as a fraction, we are willing to send to the server. Must be between 0.0 and 1.0.

    sendInterrupts

    Whether or not to interrupt the original or backup request when a response is returned and the result of the outstanding request is superseded. For protocols without a control plane, where the connection is cut on interrupts, this should be "false" to avoid connection churn

  7. def Configured(maxExtraLoad: Double, sendInterrupts: Boolean, minSendBackupAfterMs: Int): Param

    Configure BackupRequestFilter.

    Configure BackupRequestFilter.

    maxExtraLoad

    How much extra load, as a fraction, we are willing to send to the server. Must be between 0.0 and 1.0.

    sendInterrupts

    Whether or not to interrupt the original or backup request when a response is returned and the result of the outstanding request is superseded. For protocols without a control plane, where the connection is cut on interrupts, this should be "false" to avoid connection churn.

    minSendBackupAfterMs

    Use a minimum non-zero delay to prevent sending unnecessary backup requests immediately for services where the latency at the percentile where a backup will be sent is ~0ms.

  8. val Disabled: Param

    Configuration to disable BackupRequestFilter

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. val description: String
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def filterService[Req, Rep](params: Params, service: Service[Req, Rep]): Service[Req, Rep]

    Returns service with a BackupRequestFilter prepended, according to the configuration params in params.

    Returns service with a BackupRequestFilter prepended, according to the configuration params in params. If the BackupRequestFilter has not been configured, returns the same service.

    Users should only use this method for filtering generic services; otherwise, usage through the idempotent method on MethodBuilder implementations is preferred.

    Note

    The BackupRequestFilter will be added to the ClientRegistry if and only if ProtocolLibrary, Label, and Dest are present in params. The BackupRequestFilter will be registered under scope: "client"/"client_protocol_library"/"client_label"/"dest"/"BackupRequestFilter" If any of the 3 params is missing, BRF will not be registered.

  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def module[Req, Rep]: Stackable[ServiceFactory[Req, Rep]]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. val role: Role
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. object Histogram extends Serializable
  30. object Param

Inherited from AnyRef

Inherited from Any

Ungrouped