Package

com.twitter.inject.thrift

filters

Permalink

package filters

Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class BaseDarkTrafficFilter extends TypeAgnostic with AbstractDarkTrafficFilter with Logging

    Permalink
  2. class DarkTrafficFilter[ServiceIface] extends BaseDarkTrafficFilter

    Permalink

    An implementation of com.twitter.finagle.exp.AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic and thus works in a Finatra ThriftRouter filter chain.

    An implementation of com.twitter.finagle.exp.AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic and thus works in a Finatra ThriftRouter filter chain. This differs from the com.twitter.finagle.exp.DarkTrafficFilter in that this class is typed to work like other ThriftFilters as agnostic to types until apply() is invoked.

    ServiceIface

    - the type of the Service to take dark traffic.

    Annotations
    @Singleton()
    Note

    This Filter only works for Scala services. Java users should use the JavaDarkTrafficFilter.

    See also

    com.twitter.finagle.exp.AbstractDarkTrafficFilter

  3. class JavaDarkTrafficFilter extends BaseDarkTrafficFilter

    Permalink

    An implementation of com.twitter.finagle.exp.AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic for use with generated Java code.

    An implementation of com.twitter.finagle.exp.AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic for use with generated Java code.

    Annotations
    @Singleton()
    Note

    This filter is expected to be applied on a Service[Array[Byte], Array[Byte]]

    See also

    com.twitter.finagle.exp.AbstractDarkTrafficFilter

    com.twitter.finagle.ThriftMux.newService

  4. class ThriftClientFilterBuilder extends AnyRef

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2018-01-12) Use ThriftMethodBuilderClientModule and ThriftMethodBuilder

  5. class ThriftClientFilterChain[Req <: ThriftStruct, Rep] 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, 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 | +------------------------+ | 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

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-01-12) Use ThriftMethodBuilderClientModule and ThriftMethodBuilder

    See also

    com.twitter.finagle.thrift.service.ThriftServicePerEndpoint

    com.twitter.inject.thrift.filters.ThriftClientFilterBuilder

Ungrouped