public interface ClientConnectionManager extends ConnectionListenable
ClientConnection
objects.Modifier and Type | Method and Description |
---|---|
void |
addConnectionHeartbeatListener(com.hazelcast.client.spi.impl.ConnectionHeartbeatListener connectionHeartbeatListener) |
void |
connectToCluster() |
Future<Void> |
connectToClusterAsync() |
Connection |
getActiveConnection(Address address) |
Collection<ClientConnection> |
getActiveConnections() |
Connection |
getOrConnect(Address address) |
Connection |
getOrTriggerConnect(Address address,
boolean acquiresResource) |
ClientConnection |
getOwnerConnection() |
Address |
getOwnerConnectionAddress() |
com.hazelcast.client.impl.client.ClientPrincipal |
getPrincipal() |
boolean |
isAlive()
Check if client connection manager is alive.
|
addConnectionListener
boolean isAlive()
Connection getActiveConnection(Address address)
address
- to be connectedConnection getOrConnect(Address address) throws IOException
address
- to be connectedIOException
- if connection is not establishedConnection getOrTriggerConnect(Address address, boolean acquiresResource) throws IOException
address
- to be connectedIOException
- if connection is not able to triggeredvoid addConnectionHeartbeatListener(com.hazelcast.client.spi.impl.ConnectionHeartbeatListener connectionHeartbeatListener)
Collection<ClientConnection> getActiveConnections()
Address getOwnerConnectionAddress()
com.hazelcast.client.impl.client.ClientPrincipal getPrincipal()
ClientConnection getOwnerConnection()
void connectToCluster()
Copyright © 2018 Hazelcast, Inc.. All rights reserved.