|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientConnectionManager
Responsible for managing ClientConnection
objects.
Method Summary | |
---|---|
void |
addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener)
|
void |
addConnectionListener(ConnectionListener connectionListener)
|
void |
destroyConnection(Connection connection)
Destroys the connection Clears related resources of given connection. |
Connection |
getConnection(Address address)
|
Connection |
getOrConnect(Address address,
Authenticator authenticator)
|
void |
handlePacket(Packet packet)
Handles incoming network package |
boolean |
isAlive()
Check if client connection manager is alive. |
void |
shutdown()
Shutdown clientConnectionManager |
void |
start()
Start clientConnectionManager |
Method Detail |
---|
void shutdown()
boolean isAlive()
void start()
Connection getConnection(Address address)
address
- to be connected
Connection getOrConnect(Address address, Authenticator authenticator) throws IOException
address
- to be connectedauthenticator
- Authenticator implementation to send appropriate Authentication Request after connection
IOException
- if connection is not establishedvoid destroyConnection(Connection connection)
connection
- to be closedvoid handlePacket(Packet packet)
packet
- to be processedvoid addConnectionListener(ConnectionListener connectionListener)
void addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |