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