public abstract class ClusterListenerSupport extends Object implements ConnectionListener, ConnectionHeartbeatListener, ClientClusterService
| Modifier and Type | Field and Description |
|---|---|
protected HazelcastClientInstanceImpl |
client |
| Constructor and Description |
|---|
ClusterListenerSupport(HazelcastClientInstanceImpl client,
Collection<AddressProvider> addressProviders) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionAdded(Connection connection) |
void |
connectionRemoved(Connection connection) |
protected void |
connectToCluster() |
Address |
getOwnerConnectionAddress()
Owner connection is opened to owner member of the client in the cluster.
|
ClientPrincipal |
getPrincipal() |
void |
heartBeatStarted(Connection connection) |
void |
heartBeatStopped(Connection connection) |
protected void |
init() |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMembershipListener, getClusterTime, getLocalClient, getMasterAddress, getMember, getMember, getMemberList, getMembers, getSize, getSize, removeMembershipListenerprotected final HazelcastClientInstanceImpl client
public ClusterListenerSupport(HazelcastClientInstanceImpl client, Collection<AddressProvider> addressProviders)
protected void init()
public Address getOwnerConnectionAddress()
ClientClusterServicegetOwnerConnectionAddress in interface ClientClusterServicepublic void shutdown()
public ClientPrincipal getPrincipal()
public void connectionAdded(Connection connection)
connectionAdded in interface ConnectionListenerpublic void connectionRemoved(Connection connection)
connectionRemoved in interface ConnectionListenerpublic void heartBeatStarted(Connection connection)
heartBeatStarted in interface ConnectionHeartbeatListenerpublic void heartBeatStopped(Connection connection)
heartBeatStopped in interface ConnectionHeartbeatListenerCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.