public interface ClientConnectionManager
ClientConnection objects.| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
| Connection | getOrTriggerConnect(Address address,
                   Authenticator authenticator) | 
| void | handleClientMessage(ClientMessage message,
                   Connection connection)Handles incoming network package | 
| boolean | isAlive()Check if client connection manager is alive. | 
| void | shutdown()Shutdown clientConnectionManager | 
| void | start()Start clientConnectionManager | 
void shutdown()
boolean isAlive()
void start()
Connection getConnection(Address address)
address - to be connectedConnection getOrConnect(Address address, Authenticator authenticator) throws IOException
address - to be connectedauthenticator - Authenticator implementation to send appropriate Authentication Request after connectionIOException - if connection is not establishedConnection getOrTriggerConnect(Address address, Authenticator authenticator) throws IOException
address - to be connectedauthenticator - Authenticator implementation to send appropriate Authentication Request after connectionIOException - if connection is not available at the time of callvoid destroyConnection(Connection connection)
connection - to be closedvoid handleClientMessage(ClientMessage message, Connection connection)
message - to be processedconnection - that client message come fromvoid addConnectionListener(ConnectionListener connectionListener)
void addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.