|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.client.connection.nio.ClientConnectionManagerImpl
public class ClientConnectionManagerImpl
| Constructor Summary | |
|---|---|
ClientConnectionManagerImpl(HazelcastClientInstanceImpl client,
AddressTranslator addressTranslator)
|
|
| Method Summary | |
|---|---|
void |
addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener)
|
void |
addConnectionListener(ConnectionListener connectionListener)
|
void |
destroyConnection(Connection connection)
Destroys the connection Clears related resources of given connection. |
ClientConnection |
getConnection(Address target)
|
ClientConnection |
getOrConnect(Address target,
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientConnectionManagerImpl(HazelcastClientInstanceImpl client,
AddressTranslator addressTranslator)
| Method Detail |
|---|
public boolean isAlive()
ClientConnectionManager
isAlive in interface ClientConnectionManagerpublic void start()
ClientConnectionManager
start in interface ClientConnectionManagerpublic void shutdown()
ClientConnectionManager
shutdown in interface ClientConnectionManagerpublic ClientConnection getConnection(Address target)
getConnection in interface ClientConnectionManagertarget - to be connected
public ClientConnection getOrConnect(Address target,
Authenticator authenticator)
throws IOException
getOrConnect in interface ClientConnectionManagertarget - to be connectedauthenticator - Authenticator implementation to send appropriate Authentication Request after connection
IOException - if connection is not establishedpublic void destroyConnection(Connection connection)
ClientConnectionManager
destroyConnection in interface ClientConnectionManagerconnection - to be closedpublic void handlePacket(Packet packet)
ClientConnectionManager
handlePacket in interface ClientConnectionManagerpacket - to be processedpublic void addConnectionListener(ConnectionListener connectionListener)
addConnectionListener in interface ClientConnectionManagerpublic void addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener)
addConnectionHeartbeatListener in interface ClientConnectionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||