public class ClientConnectionManager extends java.util.concurrent.CopyOnWriteArrayList<ClientConnection> implements IClientConnectionManager
| Constructor and Description |
|---|
ClientConnectionManager() |
| Modifier and Type | Method and Description |
|---|---|
ClientConnection |
get(int clientId)
Gets the connection.
|
boolean |
isConnected(int clientId,
java.net.InetAddress address,
int port)
Checks if the specified parameters identify a valid client.
|
void |
setSignOfLife(int clientId) |
add, add, addAll, addAll, addAllAbsent, addIfAbsent, clear, clone, contains, containsAll, equals, forEach, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitpublic ClientConnection get(int clientId)
get in interface IClientConnectionManagerget in interface java.util.List<ClientConnection>get in class java.util.concurrent.CopyOnWriteArrayList<ClientConnection>clientId - the client idpublic boolean isConnected(int clientId,
java.net.InetAddress address,
int port)
isConnected in interface IClientConnectionManagerclientId - the client idaddress - the addressport - the portpublic void setSignOfLife(int clientId)
setSignOfLife in interface IClientConnectionManager