public class ConnectionManager extends Object implements MembershipListener
| Constructor and Description |
|---|
ConnectionManager(HazelcastClient client,
ClientConfig config,
LifecycleServiceClientImpl lifecycleService) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyConnection(Connection connection) |
Connection |
getConnection() |
Connection |
getInitConnection() |
protected Connection |
getNextConnection() |
Connection |
lookForLiveConnection() |
void |
memberAdded(MembershipEvent membershipEvent) |
void |
memberRemoved(MembershipEvent membershipEvent) |
void |
setBinder(ClientBinder binder) |
boolean |
shouldExecuteOnDisconnect(Connection connection) |
void |
shutdown() |
void |
updateMembers() |
public ConnectionManager(HazelcastClient client, ClientConfig config, LifecycleServiceClientImpl lifecycleService)
public Connection getInitConnection() throws IOException
IOExceptionpublic Connection lookForLiveConnection() throws IOException
IOExceptionpublic Connection getConnection() throws IOException
IOExceptionpublic void destroyConnection(Connection connection)
protected Connection getNextConnection()
public void memberAdded(MembershipEvent membershipEvent)
memberAdded in interface MembershipListenerpublic void memberRemoved(MembershipEvent membershipEvent)
memberRemoved in interface MembershipListenerpublic void updateMembers()
public boolean shouldExecuteOnDisconnect(Connection connection)
public void setBinder(ClientBinder binder)
public void shutdown()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.