com.hazelcast.client
Class ClientConfig
java.lang.Object
com.hazelcast.client.ClientConfig
public class ClientConfig
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientConfig
public ClientConfig()
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.