public class ConnectionLinker extends Object
Constructor and Description |
---|
ConnectionLinker()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addConnection(ISocketServerConnection connection)
Adds a new connection.
|
ISocketServerConnection |
getConnectionById(int id)
Returns the connection with the required id.
|
int |
getNextConnectionId()
.
|
void |
removeConnection(ISocketServerConnection connection)
Removes a connection.
|
public void addConnection(ISocketServerConnection connection)
connection
- connectionpublic ISocketServerConnection getConnectionById(int id)
id
- id of the connectionpublic int getNextConnectionId() throws Exception
Exception
- when no connection ID available.public void removeConnection(ISocketServerConnection connection)
connection
- connection.Copyright © 2018 universAAL Consortium. All rights reserved.