public static class Server.ConnectionTracker extends java.lang.Object implements Connection.Tracker
Modifier and Type | Field and Description |
---|---|
org.jboss.netty.channel.group.ChannelGroup |
allChannels |
Constructor and Description |
---|
Server.ConnectionTracker() |
Modifier and Type | Method and Description |
---|---|
void |
addConnection(org.jboss.netty.channel.Channel ch,
Connection connection) |
void |
closeAll() |
int |
getConnectedClients() |
void |
register(Event.Type type,
org.jboss.netty.channel.Channel ch) |
void |
send(Event event) |
void |
unregister(org.jboss.netty.channel.Channel ch) |
public void addConnection(org.jboss.netty.channel.Channel ch, Connection connection)
addConnection
in interface Connection.Tracker
public void register(Event.Type type, org.jboss.netty.channel.Channel ch)
public void unregister(org.jboss.netty.channel.Channel ch)
public void send(Event event)
public void closeAll()
closeAll
in interface Connection.Tracker
public int getConnectedClients()
Copyright © 2014 The Apache Software Foundation