public interface ClientConnectionManager extends ConnectionListenable
ClientConnection objects.| Modifier and Type | Method and Description | 
|---|---|
| void | addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener) | 
| void | destroyConnection(Connection connection,
                 String reason,
                 Throwable cause)Destroys the connection
 Clears related resources of given connection. | 
| Connection | getConnection(Address address) | 
| Connection | getOrConnect(Address address,
            boolean asOwner) | 
| Connection | getOrTriggerConnect(Address address,
                   boolean asOwner) | 
| 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 | 
addConnectionListenervoid shutdown()
boolean isAlive()
void start()
Connection getConnection(Address address)
address - to be connectedConnection getOrConnect(Address address, boolean asOwner) throws IOException
address - to be connectedasOwner - true if connection should be authenticated as owner, false otherwiseIOException - if connection is not establishedConnection getOrTriggerConnect(Address address, boolean asOwner)
address - to be connectedasOwner - true if connection should be authenticated as owner, false otherwisevoid destroyConnection(Connection connection, String reason, Throwable cause)
connection - to be closedreason - the reason of closing this exception. Can be null if no reason is given.cause - exception that cause connection to be closed, null if closed explicitlyvoid handleClientMessage(ClientMessage message, Connection connection)
message - to be processedconnection - that client message come fromvoid addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.