A com.twitter.finagle.Filter that coordinates retries of subsequent Services.
A com.twitter.finagle.Filter that coordinates retries of subsequent Services. Successful and exceptional responses can can be classified as retryable via the retryPolicy com.twitter.finagle.service.RetryPolicy argument.
consider using a Timer with high resolution so that there is less correlation between retries. For example HighResTimer.Default.
the budget that is withdrawn from for retries.
Terminates a filter chain in a service.
Terminates a filter chain in a service. For example,
myFilter.andThen(myService)
a service that takes the output request type and the input response type.
Chains a series of filters together:
Chains a series of filters together:
myModularService = handleExceptions.andThen(thrift2Pojo.andThen(parseString))
Note: synchronously thrown exceptions in the underlying service are automatically lifted into Future.exception.
another filter to follow after this one
Conditionally propagates requests down the filter chain.
Conditionally propagates requests down the filter chain. This may useful if you are statically wiring together filter chains based on a configuration file, for instance.
a tuple of boolean and filter.
This is the method to override/implement to create your own Filter.
This is the method to override/implement to create your own Filter.
the input request type
a service that takes the output request type and the input response type
A com.twitter.finagle.Filter that coordinates retries of subsequent Services. Successful and exceptional responses can be classified as retryable via the retryPolicy com.twitter.finagle.service.RetryPolicy argument.
consider using a Timer with high resolution so that there is less correlation between retries. For example HighResTimer.Default.