com.twitter.finagle.netty3

channel

package channel

Visibility
  1. Public
  2. All

Type Members

  1. class BrokerChannelHandler extends SimpleChannelHandler

  2. class ChannelStatsHandler extends SimpleChannelHandler with ConnectionLifecycleHandler

    A org.jboss.netty.channel.ChannelHandler that tracks channel/connection statistics.

    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.

  3. class IdleChannelHandler extends IdleStateAwareChannelHandler

    This handler closes a channel if it receives an IDLE event.

  4. class IdleConnectionFilter[Req, Rep] extends ServiceFactoryProxy[Req, Rep]

    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.

  5. class LeftFoldUpstreamHandler extends AnyRef

  6. case class OpenConnectionsThresholds(lowWaterMark: Int, highWaterMark: Int, idleTimeout: Duration) extends Product with Serializable

Value Members

  1. object IdleConnectionFilter

Ungrouped