No more than maxRejectFraction
of requests will be
discarded over the rejectPeriod
. Must be >= 1 second
and <= 60 seconds
.
Default is 10.seconds.
Maximum fraction of requests per-connection that can be
rejected over rejectPeriod
. Must be between 0.0 and 1.0.
Default is 0.2.
for stats reporting, typically scoped to ".../admission_control/deadline/"
current time in milliseconds
DarkMode will collect stats but not reject requests
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 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 rejects requests when their deadline has passed.
The user guide for more details.