Convert the Filter.TypeAgnostic filter to a Filter and chain it with
andThen
.
Convert the Filter.TypeAgnostic filter to a Filter and chain it with
andThen
.
Terminates a filter chain in a ServiceFactory.
Terminates a filter chain in a ServiceFactory. For example,
myFilter.andThen(myServiceFactory)
a service factory that takes the output request type and the input response type.
Terminates a filter chain in a Service.
Chains a series of filters together:
Chains a series of filters together:
myModularService = handleExceptions.andThen(thrift2Pojo.andThen(parseString))
another filter to follow after this one
synchronously thrown exceptions in the underlying service are automatically lifted into Future.exception.
Conditionally propagates requests down the filter chain.
Conditionally propagates requests down the filter chain. This may be useful if you are statically wiring together filter chains based on a configuration file, for instance.
a tuple of boolean and filter.
Conditionally propagates requests down the filter chain.
Conditionally propagates requests down the filter chain. This may be useful if you are statically wiring together filter chains based on a configuration file, for instance.
a boolean value indicating whether the filter should be included in the filter chain.
the filter to be conditionally included.
This is the method to override/implement to create your own Filter.
This is the method to override/implement to create your own Filter.
a service that takes the output request type and the input response type
A filter that exports two histograms to a given StatsReceiver.
1. "request_payload_bytes" - a distribution of request payload sizes in bytes 2. "response_payload_bytes" - a distribution of response payload sizes in bytes
The sizes are also traced using the binary annotations clnt/request_payload_bytes and clnt/response_payload_bytes on the client side, and srv/request_payload_bytes and srv/response_payload_bytes. on the server.