public interface ClientConnectionManager extends ConnectionListenable, ClusterSwitchAwareService
ClientConnection
objects.Modifier and Type | Method and Description |
---|---|
Connection |
getActiveConnection(Address address) |
Collection<ClientConnection> |
getActiveConnections() |
Connection |
getOrConnect(Address address) |
Connection |
getOrTriggerConnect(Address address,
boolean acquiresResource) |
ClientConnection |
getOwnerConnection() |
Address |
getOwnerConnectionAddress() |
ClientPrincipal |
getPrincipal() |
boolean |
isAlive()
Check if client connection manager is alive.
|
void |
setCandidateClusterContext(CandidateClusterContext context) |
addConnectionListener
beforeClusterSwitch
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 triggeredCollection<ClientConnection> getActiveConnections()
Address getOwnerConnectionAddress()
ClientPrincipal getPrincipal()
ClientConnection getOwnerConnection()
void setCandidateClusterContext(CandidateClusterContext context)
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.