Reserve the use of a given service instance.
Reserve the use of a given service instance. This pins the underlying channel and the returned service has exclusive use of its underlying connection. To relinquish the use of the reserved Service, the user must call Service.close().
Apply f
on created services, returning the resulting Future in their
stead.
Apply f
on created services, returning the resulting Future in their
stead. This is useful for implementing common factory wrappers that
only need to modify or operate on the underlying service.
Map created services.
Map created services. Useful for implementing common styles of factory wrappers.
Make a service that after dispatching a request on that service, releases the service.
Make a service that after dispatching a request on that service, releases the service.
(Since version 5.0.1) use apply() instead
Filter responsible for tracking idle connection, it will refuse requests and try to close idle connections based on the number of active connections.
Each time a message from a new connection arrive (based on nb of connections): - if below low watermark: accept the connection. - if above low watermark: collect (close) idle connections, but accept the connection. - if above high watermark: collect (close) idle connections, and refuse/accept the connection depending if we managed to close an idle connection.
NB: the connection is tracked after the server response, so that the server processing time is not count in the idle timeout.
Note: this will not properly handle multiple outstanding messages per connection and should not be used for duplex protocols such as finagle-mux.