com.hazelcast.client
Class ConnectionManager
java.lang.Object
com.hazelcast.client.ConnectionManager
- All Implemented Interfaces:
- MembershipListener, EventListener
public class ConnectionManager
- extends Object
- implements MembershipListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionManager
public ConnectionManager(HazelcastClient client,
LifecycleServiceClientImpl lifecycleService,
InetSocketAddress[] clusterMembers,
boolean shuffle,
long timeout)
ConnectionManager
public ConnectionManager(HazelcastClient client,
LifecycleServiceClientImpl lifecycleService,
InetSocketAddress address,
long timeout)
getInitConnection
public Connection getInitConnection()
throws IOException
- Throws:
IOException
lookForLiveConnection
public Connection lookForLiveConnection()
throws IOException
- Throws:
IOException
getConnection
public Connection getConnection()
throws IOException
- Throws:
IOException
destroyConnection
public void destroyConnection(Connection connection)
getNextConnection
protected Connection getNextConnection()
memberAdded
public void memberAdded(MembershipEvent membershipEvent)
- Specified by:
memberAdded in interface MembershipListener
memberRemoved
public void memberRemoved(MembershipEvent membershipEvent)
- Specified by:
memberRemoved in interface MembershipListener
updateMembers
public void updateMembers()
shouldExecuteOnDisconnect
public boolean shouldExecuteOnDisconnect(Connection connection)
setBinder
public void setBinder(ClientBinder binder)
shutdown
public void shutdown()
Copyright © 2012 Hazel Bilisim Ltd.. All Rights Reserved.