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) |
void |
connectToCluster() |
Address |
getOwnerConnectionAddress()
The owner connection is opened to owner member of the client in the cluster.
|
ClientPrincipal |
getPrincipal() |
void |
heartbeatResumed(Connection connection)
This event will be fired when the heartbeat is resumed for a connection to a member.
|
void |
heartbeatStopped(Connection connection)
This event will be fired when no heartbeat response is received for
spi.properties.ClientProperty.HEARTBEAT_TIMEOUT milliseconds from the member. |
protected void |
init() |
void |
setPrincipal(ClientPrincipal principal) |
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 setPrincipal(ClientPrincipal principal)
public void connectionAdded(Connection connection)
connectionAdded in interface ConnectionListenerpublic void connectionRemoved(Connection connection)
connectionRemoved in interface ConnectionListenerpublic void heartbeatResumed(Connection connection)
ConnectionHeartbeatListenerheartbeatResumed in interface ConnectionHeartbeatListenerpublic void heartbeatStopped(Connection connection)
ConnectionHeartbeatListenerspi.properties.ClientProperty.HEARTBEAT_TIMEOUT milliseconds from the member.heartbeatStopped in interface ConnectionHeartbeatListenerCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.