com.hazelcast.client
Class ConnectionManager

java.lang.Object
  extended by com.hazelcast.client.ConnectionManager
All Implemented Interfaces:
MembershipListener, EventListener

public class ConnectionManager
extends Object
implements MembershipListener


Constructor Summary
ConnectionManager(HazelcastClient client, LifecycleServiceClientImpl lifecycleService, InetSocketAddress[] clusterMembers, boolean shuffle, long timeout)
           
ConnectionManager(HazelcastClient client, LifecycleServiceClientImpl lifecycleService, InetSocketAddress address, long timeout)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionManager

public ConnectionManager(HazelcastClient client,
                         LifecycleServiceClientImpl lifecycleService,
                         InetSocketAddress[] clusterMembers,
                         boolean shuffle,
                         long timeout)

ConnectionManager

public ConnectionManager(HazelcastClient client,
                         LifecycleServiceClientImpl lifecycleService,
                         InetSocketAddress address,
                         long timeout)
Method Detail

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.