com.hazelcast.client
Class ClientConfig

java.lang.Object
  extended by com.hazelcast.client.ClientConfig

public class ClientConfig
extends Object


Constructor Summary
ClientConfig()
           
 
Method Summary
 ClientConfig addAddress(String... addresses)
           
 ClientConfig addInetSocketAddress(InetSocketAddress... inetSocketAddresses)
           
 ClientConfig addInetSocketAddress(List<InetSocketAddress> inetSocketAddresses)
           
 ClientConfig addListener(Object listener)
          Adds a listener object to configuration to be registered when HazelcastClient starts.
 Collection<InetSocketAddress> getAddressList()
           
 int getConnectionTimeout()
           
 Credentials getCredentials()
           
 GroupConfig getGroupConfig()
           
 int getInitialConnectionAttemptLimit()
           
 Collection getListeners()
           
 int getReconnectionAttemptLimit()
           
 int getReConnectionTimeOut()
           
 SocketInterceptor getSocketInterceptor()
           
 boolean isShuffle()
           
 boolean isUpdateAutomatic()
           
 void setAddresses(List<String> addresses)
           
 ClientConfig setConnectionTimeout(int connectionTimeout)
           
 ClientConfig setCredentials(Credentials credentials)
           
 ClientConfig setGroupConfig(GroupConfig groupConfig)
           
 ClientConfig setInitialConnectionAttemptLimit(int initialConnectionAttemptLimit)
           
 ClientConfig setReconnectionAttemptLimit(int reconnectionAttemptLimit)
           
 ClientConfig setReConnectionTimeOut(int reConnectionTimeOut)
           
 void setShuffle(boolean shuffle)
           
 void setSocketInterceptor(SocketInterceptor socketInterceptor)
           
 void setUpdateAutomatic(boolean updateAutomatic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientConfig

public ClientConfig()
Method Detail

getSocketInterceptor

public SocketInterceptor getSocketInterceptor()

setSocketInterceptor

public void setSocketInterceptor(SocketInterceptor socketInterceptor)

getReConnectionTimeOut

public int getReConnectionTimeOut()

setReConnectionTimeOut

public ClientConfig setReConnectionTimeOut(int reConnectionTimeOut)

getReconnectionAttemptLimit

public int getReconnectionAttemptLimit()

setReconnectionAttemptLimit

public ClientConfig setReconnectionAttemptLimit(int reconnectionAttemptLimit)

getInitialConnectionAttemptLimit

public int getInitialConnectionAttemptLimit()

setInitialConnectionAttemptLimit

public ClientConfig setInitialConnectionAttemptLimit(int initialConnectionAttemptLimit)

getConnectionTimeout

public int getConnectionTimeout()

setConnectionTimeout

public ClientConfig setConnectionTimeout(int connectionTimeout)

getCredentials

public Credentials getCredentials()

setCredentials

public ClientConfig setCredentials(Credentials credentials)

addInetSocketAddress

public ClientConfig addInetSocketAddress(List<InetSocketAddress> inetSocketAddresses)

addInetSocketAddress

public ClientConfig addInetSocketAddress(InetSocketAddress... inetSocketAddresses)

addAddress

public ClientConfig addAddress(String... addresses)

setAddresses

public void setAddresses(List<String> addresses)

getAddressList

public Collection<InetSocketAddress> getAddressList()

getGroupConfig

public GroupConfig getGroupConfig()

setGroupConfig

public ClientConfig setGroupConfig(GroupConfig groupConfig)

setShuffle

public void setShuffle(boolean shuffle)

isShuffle

public boolean isShuffle()

isUpdateAutomatic

public boolean isUpdateAutomatic()

setUpdateAutomatic

public void setUpdateAutomatic(boolean updateAutomatic)

getListeners

public Collection getListeners()

addListener

public ClientConfig addListener(Object listener)
Adds a listener object to configuration to be registered when HazelcastClient starts.

Parameters:
listener - one of LifecycleListener, InstanceListener or MembershipListener
Returns:


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.