public class ConnectionCountHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| Modifier and Type | Field and Description |
|---|---|
AtomicLong |
connectionsTillStartup |
AtomicInteger |
currentConnectionCount |
| Constructor and Description |
|---|
ConnectionCountHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
long |
getConnectionsTillStartup()
Return the count of all connections which where made till the server
was started
|
int |
getCurrentConnectionCount()
Return the count of the current open connections
|
public AtomicInteger currentConnectionCount
public AtomicLong connectionsTillStartup
public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelClosed in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelOpen in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic int getCurrentConnectionCount()
public long getConnectionsTillStartup()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.