Package

com.twitter.inject.thrift

filters

Permalink

package filters

Visibility
  1. Public
  2. All

Type Members

  1. class ThriftClientFilterBuilder extends AnyRef

    Permalink
  2. class ThriftClientFilterChain[Req <: ThriftStruct, Rep <: ThriftResponse[_]] extends Logging

    Permalink

    A com.twitter.finagle.Filter chain builder which provides helper functions for installing and configuring common filters.

    A com.twitter.finagle.Filter chain builder which provides helper functions for installing and configuring common filters.

    Filters configured via the helper methods, e.g., withRetryPolicy, withBackupRequestFilter, withTimeout, withRequestTimeout, withMethodLatency, withExceptionFilter, will be composed in a specific order, (from top-down, assuming requests/responses enter and exit through the top):

    +------------------------+ | latencyFilter | +------------------------+ | exceptionFilter | +------------------------+ | backupRequestFilter | +------------------------+ | timeoutFilter | +------------------------+ | retryFilter | +------------------------+ | requestTimeoutFilter | +------------------------+ | concurrencyLimitFilter | +------------------------+ | filterChain | +------------------------+

    where, the filterChain is the chain of filters added in the order of calls to filtered.

    Req

    Request type for this filter chain

    Rep

    Response type for this filter chain

    See also

    com.twitter.finagle.thrift.ThriftServiceIface

    com.twitter.inject.thrift.filters.ThriftClientFilterBuilder

Ungrouped