public class ClusterConnectorServiceImpl extends Object implements ClusterConnectorService, ConnectionListener
Constructor and Description |
---|
ClusterConnectorServiceImpl(HazelcastClientInstanceImpl client,
ClientConnectionManagerImpl connectionManager,
ClientConnectionStrategy connectionStrategy,
ClientDiscoveryService discoveryService) |
Modifier and Type | Method and Description |
---|---|
void |
connectionAdded(Connection connection) |
void |
connectionRemoved(Connection connection) |
void |
connectToCluster() |
Future<Void> |
connectToClusterAsync() |
Address |
getOwnerConnectionAddress() |
boolean |
isClusterAvailable() |
void |
setOwnerConnectionAddress(Address ownerConnectionAddress) |
void |
shutdown() |
public ClusterConnectorServiceImpl(HazelcastClientInstanceImpl client, ClientConnectionManagerImpl connectionManager, ClientConnectionStrategy connectionStrategy, ClientDiscoveryService discoveryService)
public void connectToCluster()
connectToCluster
in interface ClusterConnectorService
public boolean isClusterAvailable()
isClusterAvailable
in interface ClusterConnectorService
public Address getOwnerConnectionAddress()
public void setOwnerConnectionAddress(Address ownerConnectionAddress)
public Future<Void> connectToClusterAsync()
connectToClusterAsync
in interface ClusterConnectorService
public void shutdown()
shutdown
in interface ClusterConnectorService
public void connectionAdded(Connection connection)
connectionAdded
in interface ConnectionListener
public void connectionRemoved(Connection connection)
connectionRemoved
in interface ConnectionListener
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.