An implementation of AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic and thus works in a Finatra ThriftRouter filter chain.
An implementation of AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic for use with generated Java code.
An implementation of AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic for use with generated Java code.
This filter is expected to be applied on a Service[Array[Byte], Array[Byte]]
AbstractDarkTrafficFilter
com.twitter.finagle.ThriftMux.newService
(Since version 2018-01-12) Use ThriftMethodBuilderClientModule and ThriftMethodBuilder
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.
Request type for this filter chain
Response type for this filter chain
(Since version 2018-01-12) Use ThriftMethodBuilderClientModule and ThriftMethodBuilder
com.twitter.finagle.thrift.service.ThriftServicePerEndpoint
An implementation of AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic and thus works in a Finatra ThriftRouter filter chain. This differs from the DarkTrafficFilter in that this class is typed to work like other ThriftFilters as agnostic to types until apply() is invoked.
- the type of the Service to take dark traffic.
This Filter only works for Scala services. Java users should use the
JavaDarkTrafficFilter
.AbstractDarkTrafficFilter