A org.jboss.netty.channel.ChannelHandler that tracks channel/connection statistics.
This handler closes a channel if it receives an IDLE event.
Filter responsible for tracking idle connection, it will refuse requests and try to close idle connections based on the number of active connections.
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.
A org.jboss.netty.channel.ChannelHandler that tracks channel/connection statistics. The handler is meant to be shared by all Channels within a Finagle client or server in order to consolidate statistics across a number of channels.