@ChannelHandler.Sharable public class OpenChannelsHandler extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Constructor and Description |
---|
OpenChannelsHandler(org.elasticsearch.common.logging.ESLogger logger) |
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.channel.Channel |
channel(Integer id) |
void |
close() |
void |
handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e) |
long |
numberOfOpenChannels() |
long |
totalChannels() |
public OpenChannelsHandler(org.elasticsearch.common.logging.ESLogger logger)
public void handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelEvent e) throws Exception
handleUpstream
in interface org.jboss.netty.channel.ChannelUpstreamHandler
handleUpstream
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public long numberOfOpenChannels()
public long totalChannels()
public void close()
Copyright © 2012–2014. All rights reserved.