Uses of Class
com.hazelcast.client.config.ClientConfig
Package
Description
Contains classes/interfaces related to Client
Contains classes related to config for com.hazelcast.client
Contains the Hazelcast properties implementation.
-
Uses of ClientConfig in com.hazelcast.client
Modifier and TypeMethodDescriptionstatic HazelcastInstance
HazelcastClient.getOrCreateHazelcastClient
(ClientConfig config) Gets or creates a new HazelcastInstance (a new client in a cluster) with a certain name.void
LoadBalancer.init
(Cluster cluster, ClientConfig config) Initializes the LoadBalancer.static HazelcastInstance
HazelcastClient.newHazelcastClient
(ClientConfig config) Creates a new HazelcastInstance (a new client in a cluster). -
Uses of ClientConfig in com.hazelcast.client.config
Modifier and TypeClassDescriptionclass
AClientConfig
which is initialized by loading an XML configuration file from the classpath.class
AClientConfig
which is initialized by loading an YAML configuration file from the classpath.Modifier and TypeMethodDescriptionClientConfig.addFlakeIdGeneratorConfig
(ClientFlakeIdGeneratorConfig config) Adds a flake ID generator configuration.Adds a label for this clientClient
availableClientConfig.addListenerConfig
(ListenerConfig listenerConfig) Helper method to add a new ListenerConfigClientConfig.addNearCacheConfig
(NearCacheConfig nearCacheConfig) Helper method to add a new NearCacheConfigClientConfig.addProxyFactoryConfig
(ProxyFactoryConfig proxyFactoryConfig) Helper method to add a newProxyFactoryConfig
ClientConfig.addReliableTopicConfig
(ClientReliableTopicConfig reliableTopicConfig) Adds a ClientReliableTopicConfig.XmlClientConfigBuilder.build()
XmlClientConfigBuilder.build
(ClassLoader classLoader) YamlClientConfigBuilder.build()
YamlClientConfigBuilder.build
(ClassLoader classLoader) static ClientConfig
ClientConfig.load()
Populates HazelcastClientConfig
object from an external configuration file.ClientConfig.setBackupAckToClientEnabled
(boolean backupAckToClientEnabled) This feature reduces number of hops and increases performance forRoutingMode.ALL_MEMBERS
routing clients.ClientConfig.setClassLoader
(ClassLoader classLoader) Sets the classLoader which is used by serialization and listener configurationClientConfig.setClusterName
(String clusterName) ClientConfig.setConfigPatternMatcher
(ConfigPatternMatcher configPatternMatcher) Sets the pattern matcher which is used to match item names to configuration objects.ClientConfig.setConnectionStrategyConfig
(ClientConnectionStrategyConfig connectionStrategyConfig) ClientConfig.setCPDirectToLeaderRoutingEnabled
(boolean cpDirectToLeaderRoutingEnabled) Sets whether CP direct-to-leader operation sending is enabled.ClientConfig.setFlakeIdGeneratorConfigMap
(Map<String, ClientFlakeIdGeneratorConfig> map) Sets the map ofFlakeIdGenerator
configurations, mapped by config name.ClientConfig.setInstanceName
(String instanceName) Set labels for the client.ClientConfig.setListenerConfigs
(List<ListenerConfig> listenerConfigs) Sets allListenerConfig
'sClientConfig.setLoadBalancer
(LoadBalancer loadBalancer) Sets theLoadBalancer
.ClientConfig.setLoadBalancerClassName
(String loadBalancerClassName) Sets load balancer class name.ClientConfig.setManagedContext
(ManagedContext managedContext) SetsManagedContext
ClientConfig.setMetricsConfig
(ClientMetricsConfig metricsConfig) Sets the metrics collection config.ClientConfig.setNativeMemoryConfig
(NativeMemoryConfig nativeMemoryConfig) ClientConfig.setNearCacheConfigMap
(Map<String, NearCacheConfig> nearCacheConfigMap) Sets allNearCacheConfig
's with the provided mapClientConfig.setNetworkConfig
(ClientNetworkConfig networkConfig) SetsClientNetworkConfig
ClientConfig.setProperties
(Properties properties) sets all propertiesClientConfig.setProperty
(String name, String value) Sets the value of a named property.ClientConfig.setProxyFactoryConfigs
(List<ProxyFactoryConfig> proxyFactoryConfigs) Sets theProxyFactoryConfig
ClientConfig.setReliableTopicConfigMap
(Map<String, ClientReliableTopicConfig> map) Sets the map ofClientReliableTopicConfig
, mapped by config name.ClientConfig.setSecurityConfig
(ClientSecurityConfig securityConfig) SetsClientSecurityConfig
objectClientConfig.setSerializationConfig
(SerializationConfig serializationConfig) SetsSerializationConfig
ClientConfig.setUserCodeDeploymentConfig
(ClientUserCodeDeploymentConfig userCodeDeploymentConfig) Set User Code Deployment configurationClientConfig.setUserContext
(ConcurrentMap<String, Object> userContext) Modifier and TypeMethodDescriptionClientFailoverConfig.getClientConfigs()
Gets the configured list of alternative client configurations.Modifier and TypeMethodDescriptionClientFailoverConfig.addClientConfig
(ClientConfig clientConfig) Adds the client config to the end of the alternative client configurations list.static String
ClientConfigXmlGenerator.generate
(ClientConfig clientConfig) Convenience forClientConfigXmlGenerator.generate(ClientConfig, int)
, which generates the xml without any formatting.static String
ClientConfigXmlGenerator.generate
(ClientConfig clientConfig, int indent) Transforms the givenClientConfig
to xml string formatting the output with givenindent
, -1 means no formatting.Modifier and TypeMethodDescriptionClientFailoverConfig.setClientConfigs
(List<ClientConfig> clientConfigs) Sets the configured list of alternative client configurations. -
Uses of ClientConfig in com.hazelcast.spi.properties
ModifierConstructorDescriptionHazelcastProperties
(ClientConfig clientConfig) Creates a container with configured Hazelcast properties.