public class ClientConfig extends Object
Constructor and Description |
---|
ClientConfig() |
public void setConfigPatternMatcher(ConfigPatternMatcher configPatternMatcher)
public String getProperty(String name)
name
- property namepublic ClientConfig setProperty(String name, String value)
name
- property namevalue
- value of the propertyClientConfig
for chaining@Deprecated public String getProperty(HazelcastProperty property)
HazelcastProperty
already set or from system properties if not exists.
Deprecated since Hazelcast 3.7, use getProperty(String)
instead.property
- HazelcastProperty
to get@Deprecated public ClientConfig setProperty(HazelcastProperty property, String value)
HazelcastProperty
.
Deprecated since Hazelcast 3.7, use setProperty(String, String)
instead.property
- HazelcastProperty
to setvalue
- value of the propertyClientConfig
for chainingpublic Properties getProperties()
Properties
objectProperties
objectpublic ClientConfig setProperties(Properties properties)
properties
- Properties
objectClientConfig
for chainingpublic ClientSecurityConfig getSecurityConfig()
ClientSecurityConfig
objectClientSecurityConfig
ClientSecurityConfig
public ClientConfig setSecurityConfig(ClientSecurityConfig securityConfig)
ClientSecurityConfig
objectsecurityConfig
- ClientSecurityConfig
to be setClientConfig
for chainingClientSecurityConfig
public ClientNetworkConfig getNetworkConfig()
ClientNetworkConfig
ClientNetworkConfig
ClientNetworkConfig
public ClientConfig setNetworkConfig(ClientNetworkConfig networkConfig)
ClientNetworkConfig
networkConfig
- ClientNetworkConfig
to be setClientConfig
for chainingClientNetworkConfig
public ClientConfig addReliableTopicConfig(ClientReliableTopicConfig reliableTopicConfig)
reliableTopicConfig
- the ClientReliableTopicConfig to addClientConfig
for chainingpublic ClientReliableTopicConfig getReliableTopicConfig(String name)
name
- the name of the reliable topic@Deprecated public ClientConfig addNearCacheConfig(String name, NearCacheConfig nearCacheConfig)
addNearCacheConfig(NearCacheConfig)
name
- name of the IMap / ICache that near cache config will be applied tonearCacheConfig
- nearCacheConfigClientConfig
for chainingpublic ClientConfig addNearCacheConfig(NearCacheConfig nearCacheConfig)
nearCacheConfig
- NearCacheConfig
ClientConfig
for chainingNearCacheConfig
public ClientConfig addListenerConfig(ListenerConfig listenerConfig)
listenerConfig
- ListenerConfigClientConfig
for chainingListenerConfig
public ClientConfig addProxyFactoryConfig(ProxyFactoryConfig proxyFactoryConfig)
ProxyFactoryConfig
proxyFactoryConfig
- ProxyFactoryConfig
ClientConfig
for chainingProxyFactoryConfig
public NearCacheConfig getNearCacheConfig(String name)
NearCacheConfig
configured for the map / cache with namename
- name of the map / cacheNearCacheConfig
NearCacheConfig
public Map<String,NearCacheConfig> getNearCacheConfigMap()
NearCacheConfig
public ClientConfig setNearCacheConfigMap(Map<String,NearCacheConfig> nearCacheConfigMap)
NearCacheConfig
's with the provided mapnearCacheConfigMap
- map of (name, NearCacheConfig
)ClientConfig
for chaining@Deprecated public boolean isSmartRouting()
ClientNetworkConfig.isSmartRouting()
instead@Deprecated public ClientConfig setSmartRouting(boolean smartRouting)
ClientNetworkConfig.setSmartRouting(boolean)
instead@Deprecated public SocketInterceptorConfig getSocketInterceptorConfig()
ClientNetworkConfig.getSocketInterceptorConfig()
instead@Deprecated public ClientConfig setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
@Deprecated public int getConnectionAttemptPeriod()
ClientNetworkConfig.getConnectionAttemptPeriod()
instead@Deprecated public ClientConfig setConnectionAttemptPeriod(int connectionAttemptPeriod)
@Deprecated public int getConnectionAttemptLimit()
ClientNetworkConfig.getConnectionAttemptLimit()
instead@Deprecated public ClientConfig setConnectionAttemptLimit(int connectionAttemptLimit)
@Deprecated public int getConnectionTimeout()
ClientNetworkConfig.getConnectionTimeout()
instead@Deprecated public ClientConfig setConnectionTimeout(int connectionTimeout)
ClientNetworkConfig.setConnectionTimeout(int)
insteadpublic Credentials getCredentials()
Credentials
Credentials
Credentials
public ClientConfig setCredentials(Credentials credentials)
Credentials
credentials
- Credentials
ClientConfig
for chaining@Deprecated public ClientConfig addAddress(String... addresses)
@Deprecated public ClientConfig setAddresses(List<String> addresses)
@Deprecated public List<String> getAddresses()
ClientNetworkConfig.getAddresses()
insteadpublic GroupConfig getGroupConfig()
GroupConfig
GroupConfig
GroupConfig
public ClientConfig setGroupConfig(GroupConfig groupConfig)
GroupConfig
groupConfig
- GroupConfig
ClientConfig
for chainingpublic List<ListenerConfig> getListenerConfigs()
ListenerConfig
'sListenerConfig
ListenerConfig
public ClientConfig setListenerConfigs(List<ListenerConfig> listenerConfigs)
ListenerConfig
'slistenerConfigs
- list of ListenerConfig
ClientConfig
for chainingListenerConfig
public LoadBalancer getLoadBalancer()
LoadBalancer
public ClientConfig setLoadBalancer(LoadBalancer loadBalancer)
LoadBalancer
loadBalancer
- LoadBalancer
ClientConfig
for chainingLoadBalancer
@Deprecated public boolean isRedoOperation()
ClientNetworkConfig.isRedoOperation()
instead@Deprecated public ClientConfig setRedoOperation(boolean redoOperation)
ClientNetworkConfig.setRedoOperation(boolean)
instead@Deprecated public SocketOptions getSocketOptions()
ClientNetworkConfig.getSocketOptions()
instead@Deprecated public ClientConfig setSocketOptions(SocketOptions socketOptions)
public ClassLoader getClassLoader()
public ClientConfig setClassLoader(ClassLoader classLoader)
classLoader
- ClientConfig
for chainingpublic ManagedContext getManagedContext()
ManagedContext
ManagedContext
ManagedContext
public ClientConfig setManagedContext(ManagedContext managedContext)
ManagedContext
managedContext
- ManagedContext
ClientConfig
for chainingManagedContext
public int getExecutorPoolSize()
public ClientConfig setExecutorPoolSize(int executorPoolSize)
executorPoolSize
- pool sizeClientConfig
for chainingpublic List<ProxyFactoryConfig> getProxyFactoryConfigs()
ProxyFactoryConfig
ProxyFactoryConfig
ProxyFactoryConfig
public ClientConfig setProxyFactoryConfigs(List<ProxyFactoryConfig> proxyFactoryConfigs)
ProxyFactoryConfig
proxyFactoryConfigs
- list to assignClientConfig
for chainingpublic SerializationConfig getSerializationConfig()
SerializationConfig
SerializationConfig
public ClientConfig setSerializationConfig(SerializationConfig serializationConfig)
SerializationConfig
serializationConfig
- SerializationConfigClientConfig
for chainingSerializationConfig
public NativeMemoryConfig getNativeMemoryConfig()
public ClientConfig setNativeMemoryConfig(NativeMemoryConfig nativeMemoryConfig)
public String getLicenseKey()
public ClientConfig setLicenseKey(String licenseKey)
public ClientConfig addQueryCacheConfig(String mapName, QueryCacheConfig queryCacheConfig)
public Map<String,Map<String,QueryCacheConfig>> getQueryCacheConfigs()
public void setQueryCacheConfigs(Map<String,Map<String,QueryCacheConfig>> queryCacheConfigs)
public String getInstanceName()
public void setInstanceName(String instanceName)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.