public class Config extends Object
HazelcastInstance
. A Config can be created
programmatically, but can also be configured using XML, see
XmlConfigBuilder
.
Config instances can be shared between threads, but should not be modified after they are used to create HazelcastInstances.
Modifier and Type | Method and Description |
---|---|
Config |
addAtomicLongConfig(AtomicLongConfig atomicLongConfig)
Adds the AtomicLong configuration.
|
Config |
addAtomicReferenceConfig(AtomicReferenceConfig atomicReferenceConfig)
Adds the AtomicReference configuration.
|
Config |
addCacheConfig(CacheSimpleConfig cacheConfig)
Adds the cache configuration.
|
Config |
addCardinalityEstimatorConfig(CardinalityEstimatorConfig cardinalityEstimatorConfig)
Adds the cardinality estimator configuration.
|
Config |
addCountDownLatchConfig(CountDownLatchConfig countDownLatchConfig)
Adds the CountDownLatch configuration.
|
Config |
addDurableExecutorConfig(DurableExecutorConfig durableExecutorConfig)
Adds the durable executor configuration.
|
Config |
addEventJournalConfig(EventJournalConfig eventJournalConfig)
Adds the event journal configuration.
|
Config |
addExecutorConfig(ExecutorConfig executorConfig)
Adds the executor configuration.
|
Config |
addFlakeIdGeneratorConfig(FlakeIdGeneratorConfig config)
Adds a flake ID generator configuration.
|
Config |
addJobTrackerConfig(JobTrackerConfig jobTrackerConfig)
Adds the
JobTracker configuration. |
Config |
addListConfig(ListConfig listConfig)
Adds the list configuration.
|
Config |
addListenerConfig(ListenerConfig listenerConfig)
Adds a configuration for an
EventListener . |
Config |
addLockConfig(LockConfig lockConfig)
Adds the lock configuration.
|
Config |
addMapConfig(MapConfig mapConfig)
Adds the map configuration.
|
Config |
addMerkleTreeConfig(MerkleTreeConfig merkleTreeConfig)
Adds the merkle tree configuration.
|
Config |
addMultiMapConfig(MultiMapConfig multiMapConfig)
Adds the multimap configuration.
|
Config |
addPNCounterConfig(PNCounterConfig pnCounterConfig)
Adds the PN counter configuration.
|
Config |
addQueueConfig(QueueConfig queueConfig)
Adds the queue configuration.
|
Config |
addQuorumConfig(QuorumConfig quorumConfig)
Adds the split-brain protection configuration.
|
Config |
addReliableTopicConfig(ReliableTopicConfig topicConfig)
Adds the reliable topic configuration.
|
Config |
addReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig)
Adds the replicated map configuration.
|
Config |
addRingBufferConfig(RingbufferConfig ringbufferConfig)
Adds the ringbuffer configuration.
|
Config |
addScheduledExecutorConfig(ScheduledExecutorConfig scheduledExecutorConfig)
Adds the scheduled executor configuration.
|
Config |
addSemaphoreConfig(SemaphoreConfig semaphoreConfig)
Adds the
ISemaphore configuration. |
Config |
addSetConfig(SetConfig setConfig)
Adds the set configuration.
|
Config |
addTopicConfig(TopicConfig topicConfig)
Adds the topic configuration.
|
Config |
addWanReplicationConfig(WanReplicationConfig wanReplicationConfig)
Adds the WAN replication config under the name defined by
WanReplicationConfig.getName() . |
AtomicLongConfig |
findAtomicLongConfig(String name)
Returns a read-only AtomicLong configuration for the given name.
|
AtomicReferenceConfig |
findAtomicReferenceConfig(String name)
Returns a read-only AtomicReference configuration for the given name.
|
CacheSimpleConfig |
findCacheConfig(String name)
Returns a read-only
CacheSimpleConfig configuration for the given name. |
CacheSimpleConfig |
findCacheConfigOrNull(String name)
Returns the cache config with the given name or
null if there is none. |
EventJournalConfig |
findCacheEventJournalConfig(String name)
Returns a read-only cache
EventJournal
configuration for the given name. |
CardinalityEstimatorConfig |
findCardinalityEstimatorConfig(String name)
Returns a read-only
CardinalityEstimator
configuration for the given name. |
CountDownLatchConfig |
findCountDownLatchConfig(String name)
Returns a read-only CountDownLatch configuration for the given name.
|
DurableExecutorConfig |
findDurableExecutorConfig(String name)
Returns a read-only durable executor configuration for the given name.
|
ExecutorConfig |
findExecutorConfig(String name)
Returns a read-only executor configuration for the given name.
|
FlakeIdGeneratorConfig |
findFlakeIdGeneratorConfig(String name)
Returns a
FlakeIdGeneratorConfig configuration for the given flake ID generator name. |
JobTrackerConfig |
findJobTrackerConfig(String name)
Returns a read-only
JobTracker
configuration for the given name. |
ListConfig |
findListConfig(String name)
Returns a read-only
IList configuration for
the given name. |
LockConfig |
findLockConfig(String name)
Returns a read-only
ILock configuration for
the given name. |
MapConfig |
findMapConfig(String name)
Returns a read-only
IMap configuration for
the given name. |
EventJournalConfig |
findMapEventJournalConfig(String name)
Returns a read-only map
EventJournal
configuration for the given name. |
MerkleTreeConfig |
findMapMerkleTreeConfig(String name)
Returns a read-only map
MerkleTreeConfig for the given name. |
MultiMapConfig |
findMultiMapConfig(String name)
Returns a read-only
MultiMap configuration for
the given name. |
PNCounterConfig |
findPNCounterConfig(String name)
Returns a read-only
PNCounterConfig
configuration for the given name. |
QueueConfig |
findQueueConfig(String name)
Returns a read-only
IQueue configuration for
the given name. |
QuorumConfig |
findQuorumConfig(String name)
Returns a read-only split-brain protection configuration for the given
name.
|
ReliableTopicConfig |
findReliableTopicConfig(String name)
Returns a read-only reliable topic configuration for the given name.
|
ReplicatedMapConfig |
findReplicatedMapConfig(String name)
Returns a read-only
ReplicatedMap configuration for
the given name. |
RingbufferConfig |
findRingbufferConfig(String name)
Returns a read-only
Ringbuffer
configuration for the given name. |
ScheduledExecutorConfig |
findScheduledExecutorConfig(String name)
Returns a read-only scheduled executor configuration for the given name.
|
SemaphoreConfig |
findSemaphoreConfig(String name)
Returns a read-only
ISemaphore
configuration for the given name. |
SetConfig |
findSetConfig(String name)
Returns a read-only
ISet configuration for
the given name. |
TopicConfig |
findTopicConfig(String name)
Returns a read-only
ITopic
configuration for the given name. |
AdvancedNetworkConfig |
getAdvancedNetworkConfig() |
AtomicLongConfig |
getAtomicLongConfig(String name)
Returns the AtomicLongConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,AtomicLongConfig> |
getAtomicLongConfigs()
Returns the map of AtomicLong configurations, mapped by config name.
|
AtomicReferenceConfig |
getAtomicReferenceConfig(String name)
Returns the AtomicReferenceConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,AtomicReferenceConfig> |
getAtomicReferenceConfigs()
Returns the map of AtomicReference configurations, mapped by config name.
|
CacheSimpleConfig |
getCacheConfig(String name)
Returns the CacheSimpleConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,CacheSimpleConfig> |
getCacheConfigs()
Returns the map of cache configurations, mapped by config name.
|
EventJournalConfig |
getCacheEventJournalConfig(String name)
Returns the cache event journal config for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,EventJournalConfig> |
getCacheEventJournalConfigs()
Returns the map of cache event journal configurations, mapped by config
name.
|
CardinalityEstimatorConfig |
getCardinalityEstimatorConfig(String name)
Returns the CardinalityEstimatorConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,CardinalityEstimatorConfig> |
getCardinalityEstimatorConfigs()
Returns the map of cardinality estimator configurations, mapped by config
name.
|
ClassLoader |
getClassLoader()
Returns the class-loader that will be used in serialization.
|
ConfigPatternMatcher |
getConfigPatternMatcher()
Returns the pattern matcher which is used to match item names to
configuration objects.
|
File |
getConfigurationFile()
|
URL |
getConfigurationUrl()
|
CountDownLatchConfig |
getCountDownLatchConfig(String name)
Returns the CountDownLatchConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,CountDownLatchConfig> |
getCountDownLatchConfigs()
Returns the map of CountDownLatch configurations, mapped by config name.
|
CPSubsystemConfig |
getCPSubsystemConfig()
Get current configuration for the CP subsystem
|
CRDTReplicationConfig |
getCRDTReplicationConfig() |
DurableExecutorConfig |
getDurableExecutorConfig(String name)
Returns the DurableExecutorConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,DurableExecutorConfig> |
getDurableExecutorConfigs()
Returns the map of durable executor configurations, mapped by config
name.
|
ExecutorConfig |
getExecutorConfig(String name)
Returns the ExecutorConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ExecutorConfig> |
getExecutorConfigs()
Returns the map of executor configurations, mapped by config name.
|
FlakeIdGeneratorConfig |
getFlakeIdGeneratorConfig(String name)
Returns the
FlakeIdGeneratorConfig for the given name, creating
one if necessary and adding it to the collection of known configurations. |
Map<String,FlakeIdGeneratorConfig> |
getFlakeIdGeneratorConfigs()
Returns the map of
FlakeIdGenerator configurations,
mapped by config name. |
GroupConfig |
getGroupConfig()
Returns the configuration for hazelcast groups.
|
HotRestartPersistenceConfig |
getHotRestartPersistenceConfig()
Returns the Hot Restart configuration for this hazelcast instance
|
String |
getInstanceName()
Returns the instance name uniquely identifying the hazelcast instance
created by this configuration.
|
JobTrackerConfig |
getJobTrackerConfig(String name)
Returns the JobTrackerConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,JobTrackerConfig> |
getJobTrackerConfigs()
Returns the map of
JobTracker
configurations, mapped by config name. |
String |
getLicenseKey()
Returns the license key for this hazelcast instance.
|
ListConfig |
getListConfig(String name)
Returns the ListConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ListConfig> |
getListConfigs()
Returns the map of
IList configurations,
mapped by config name. |
List<ListenerConfig> |
getListenerConfigs()
Returns the list of
EventListener configurations. |
LockConfig |
getLockConfig(String name)
Returns the LockConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,LockConfig> |
getLockConfigs()
Returns the map of
ILock configurations,
mapped by config name. |
ManagedContext |
getManagedContext()
Returns the external managed context.
|
ManagementCenterConfig |
getManagementCenterConfig()
Returns the management center configuration for this hazelcast instance.
|
MapConfig |
getMapConfig(String name)
Returns the MapConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
MapConfig |
getMapConfigOrNull(String name)
Returns the map config with the given name or
null if there is none. |
Map<String,MapConfig> |
getMapConfigs()
Returns the map of
IMap configurations,
mapped by config name. |
EventJournalConfig |
getMapEventJournalConfig(String name)
Returns the map event journal config for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,EventJournalConfig> |
getMapEventJournalConfigs()
Returns the map of map event journal configurations, mapped by config
name.
|
MerkleTreeConfig |
getMapMerkleTreeConfig(String name)
Returns the map merkle tree config for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,MerkleTreeConfig> |
getMapMerkleTreeConfigs()
Returns the map of map merkle tree configurations, mapped by config
name.
|
MemberAttributeConfig |
getMemberAttributeConfig()
Returns the member attribute configuration.
|
MultiMapConfig |
getMultiMapConfig(String name)
Returns the MultiMapConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,MultiMapConfig> |
getMultiMapConfigs()
Returns the map of
MultiMap configurations,
mapped by config name. |
NativeMemoryConfig |
getNativeMemoryConfig()
Returns the native memory configuration for this hazelcast instance.
|
NetworkConfig |
getNetworkConfig()
Returns the network configuration for this hazelcast instance.
|
PartitionGroupConfig |
getPartitionGroupConfig()
Returns the partition group configuration for this hazelcast instance.
|
PNCounterConfig |
getPNCounterConfig(String name)
Returns the
PNCounterConfig for the given name, creating one
if necessary and adding it to the collection of known configurations. |
Map<String,PNCounterConfig> |
getPNCounterConfigs()
Returns the map of PN counter configurations, mapped by config
name.
|
Properties |
getProperties()
Returns the properties set on this config instance.
|
String |
getProperty(String name)
Returns the value for a named property.
|
QueueConfig |
getQueueConfig(String name)
Returns the QueueConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,QueueConfig> |
getQueueConfigs()
Returns the map of
IQueue configurations,
mapped by config name. |
QuorumConfig |
getQuorumConfig(String name)
Returns the QuorumConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,QuorumConfig> |
getQuorumConfigs()
Returns the map of split brain protection configurations, mapped by
config name.
|
ReliableTopicConfig |
getReliableTopicConfig(String name)
Returns the ReliableTopicConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ReliableTopicConfig> |
getReliableTopicConfigs()
Returns the map of reliable topic configurations, mapped by config name.
|
ReplicatedMapConfig |
getReplicatedMapConfig(String name)
Returns the ReplicatedMapConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ReplicatedMapConfig> |
getReplicatedMapConfigs()
Returns the map of
ReplicatedMap
configurations, mapped by config name. |
RingbufferConfig |
getRingbufferConfig(String name)
Returns the RingbufferConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,RingbufferConfig> |
getRingbufferConfigs()
Returns the map of
Ringbuffer
configurations, mapped by config name. |
ScheduledExecutorConfig |
getScheduledExecutorConfig(String name)
Returns the ScheduledExecutorConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ScheduledExecutorConfig> |
getScheduledExecutorConfigs()
Returns the map of scheduled executor configurations, mapped by config
name.
|
SecurityConfig |
getSecurityConfig()
Returns the security configuration for this hazelcast instance.
|
SemaphoreConfig |
getSemaphoreConfig(String name)
Returns the SemaphoreConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Collection<SemaphoreConfig> |
getSemaphoreConfigs()
Returns the collection of
ISemaphore configs
added to this config object. |
Map<String,SemaphoreConfig> |
getSemaphoreConfigsAsMap()
Returns the map of
ISemaphore configurations,
mapped by config name. |
SerializationConfig |
getSerializationConfig()
Returns the serialization configuration for this hazelcast instance.
|
ServicesConfig |
getServicesConfig()
Returns the configuration for the user services managed by this
hazelcast instance.
|
SetConfig |
getSetConfig(String name)
Returns the SetConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,SetConfig> |
getSetConfigs()
Returns the map of
ISet configurations,
mapped by config name. |
TopicConfig |
getTopicConfig(String name)
Returns the TopicConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,TopicConfig> |
getTopicConfigs()
Returns the map of reliable topic configurations, mapped by config name.
|
UserCodeDeploymentConfig |
getUserCodeDeploymentConfig()
Get current configuration of User Code Deployment.
|
ConcurrentMap<String,Object> |
getUserContext()
Returns the user supplied context.
|
WanReplicationConfig |
getWanReplicationConfig(String name)
Returns the WAN replication configuration with the given
name . |
Map<String,WanReplicationConfig> |
getWanReplicationConfigs()
Returns the map of WAN replication configurations, mapped by config
name.
|
boolean |
isLiteMember()
Returns
true if this member is a lite member. |
static Config |
load()
Populates Hazelcast
Config object from an external configuration file. |
Config |
setAdvancedNetworkConfig(AdvancedNetworkConfig advancedNetworkConfig) |
Config |
setAtomicLongConfigs(Map<String,AtomicLongConfig> atomicLongConfigs)
Sets the map of AtomicLong configurations, mapped by config name.
|
Config |
setAtomicReferenceConfigs(Map<String,AtomicReferenceConfig> atomicReferenceConfigs)
Sets the map of AtomicReference configurations, mapped by config name.
|
Config |
setCacheConfigs(Map<String,CacheSimpleConfig> cacheConfigs)
Sets the map of cache configurations, mapped by config name.
|
Config |
setCacheEventJournalConfigs(Map<String,EventJournalConfig> eventJournalConfigs)
Sets the map of cache event journal configurations, mapped by config name.
|
Config |
setCardinalityEstimatorConfigs(Map<String,CardinalityEstimatorConfig> cardinalityEstimatorConfigs)
Sets the map of cardinality estimator configurations, mapped by config name.
|
Config |
setClassLoader(ClassLoader classLoader)
Sets the class-loader to be used during de-serialization
and as context class-loader of Hazelcast internal threads.
|
void |
setConfigPatternMatcher(ConfigPatternMatcher configPatternMatcher)
Sets the pattern matcher which is used to match item names to
configuration objects.
|
Config |
setConfigurationFile(File configurationFile)
Sets the
File from which this configuration has been retrieved
and created. |
Config |
setConfigurationUrl(URL configurationUrl)
Sets the
URL from which this configuration has been retrieved
and created. |
Config |
setCountDownLatchConfigs(Map<String,CountDownLatchConfig> countDownLatchConfigs)
Sets the map of CountDownLatch configurations, mapped by config name.
|
Config |
setCPSubsystemConfig(CPSubsystemConfig cpSubsystemConfig)
Set CP subsystem configuration
|
Config |
setCRDTReplicationConfig(CRDTReplicationConfig crdtReplicationConfig)
Sets the replication configuration for
CRDT
implementations. |
Config |
setDurableExecutorConfigs(Map<String,DurableExecutorConfig> durableExecutorConfigs)
Sets the map of durable executor configurations, mapped by config name.
|
Config |
setExecutorConfigs(Map<String,ExecutorConfig> executorConfigs)
Sets the map of executor configurations, mapped by config name.
|
Config |
setFlakeIdGeneratorConfigs(Map<String,FlakeIdGeneratorConfig> map)
Sets the map of
FlakeIdGenerator configurations,
mapped by config name. |
Config |
setGroupConfig(GroupConfig groupConfig)
Sets the configuration for hazelcast groups.
|
Config |
setHotRestartPersistenceConfig(HotRestartPersistenceConfig hrConfig)
Sets the Hot Restart configuration.
|
Config |
setInstanceName(String instanceName)
Sets the instance name uniquely identifying the hazelcast instance
created by this configuration.
|
Config |
setJobTrackerConfigs(Map<String,JobTrackerConfig> jobTrackerConfigs)
Sets the map of job tracker configurations, mapped by config name.
|
Config |
setLicenseKey(String licenseKey)
Sets the license key for this hazelcast instance.
|
Config |
setListConfigs(Map<String,ListConfig> listConfigs)
Sets the map of
IList configurations,
mapped by config name. |
Config |
setListenerConfigs(List<ListenerConfig> listenerConfigs)
Sets the list of
EventListener configurations. |
Config |
setLiteMember(boolean liteMember)
Sets the flag to indicate if this member is a lite member.
|
Config |
setLockConfigs(Map<String,LockConfig> lockConfigs)
Sets the map of
ILock configurations,
mapped by config name. |
Config |
setManagedContext(ManagedContext managedContext)
Sets the external managed context.
|
Config |
setManagementCenterConfig(ManagementCenterConfig managementCenterConfig)
Sets the management center configuration for this hazelcast instance.
|
Config |
setMapConfigs(Map<String,MapConfig> mapConfigs)
Sets the map of
IMap configurations,
mapped by config name. |
Config |
setMapEventJournalConfigs(Map<String,EventJournalConfig> eventJournalConfigs)
Sets the map of map event journal configurations, mapped by config name.
|
Config |
setMapMerkleTreeConfigs(Map<String,MerkleTreeConfig> merkleTreeConfigs)
Sets the map of map merkle configurations, mapped by config name.
|
void |
setMemberAttributeConfig(MemberAttributeConfig memberAttributeConfig)
Sets the member attribute configuration.
|
Config |
setMultiMapConfigs(Map<String,MultiMapConfig> multiMapConfigs)
Sets the map of
MultiMap configurations,
mapped by config name. |
Config |
setNativeMemoryConfig(NativeMemoryConfig nativeMemoryConfig)
Sets the native memory configuration for this hazelcast instance.
|
Config |
setNetworkConfig(NetworkConfig networkConfig)
Sets the network configuration for this hazelcast instance.
|
Config |
setPartitionGroupConfig(PartitionGroupConfig partitionGroupConfig)
Sets the partition group configuration for this hazelcast instance.
|
Config |
setPNCounterConfigs(Map<String,PNCounterConfig> pnCounterConfigs)
Sets the map of PN counter configurations, mapped by config name.
|
Config |
setProperties(Properties properties)
Sets the properties for this config instance.
|
Config |
setProperty(String name,
String value)
Sets the value of a named property.
|
Config |
setQueueConfigs(Map<String,QueueConfig> queueConfigs)
Sets the map of
IQueue configurations,
mapped by config name. |
Config |
setQuorumConfigs(Map<String,QuorumConfig> quorumConfigs)
Sets the map of split-brain protection configurations, mapped by config
name.
|
Config |
setReliableTopicConfigs(Map<String,ReliableTopicConfig> reliableTopicConfigs)
Sets the map of reliable topic configurations, mapped by config name.
|
Config |
setReplicatedMapConfigs(Map<String,ReplicatedMapConfig> replicatedMapConfigs)
Sets the map of
ReplicatedMap configurations,
mapped by config name. |
Config |
setRingbufferConfigs(Map<String,RingbufferConfig> ringbufferConfigs)
Sets the map of
Ringbuffer configurations,
mapped by config name. |
Config |
setScheduledExecutorConfigs(Map<String,ScheduledExecutorConfig> scheduledExecutorConfigs)
Sets the map of scheduled executor configurations, mapped by config name.
|
Config |
setSecurityConfig(SecurityConfig securityConfig)
Sets the security configuration for this hazelcast instance.
|
Config |
setSemaphoreConfigs(Map<String,SemaphoreConfig> semaphoreConfigs)
Sets the map of semaphore configurations, mapped by config name.
|
Config |
setSerializationConfig(SerializationConfig serializationConfig)
Sets the serialization configuration for this hazelcast instance.
|
Config |
setServicesConfig(ServicesConfig servicesConfig)
Sets the configuration for the user services managed by this hazelcast
instance.
|
Config |
setSetConfigs(Map<String,SetConfig> setConfigs)
Sets the map of
ISet configurations,
mapped by config name. |
Config |
setTopicConfigs(Map<String,TopicConfig> topicConfigs)
Sets the map of
ITopic configurations,
mapped by config name. |
Config |
setUserCodeDeploymentConfig(UserCodeDeploymentConfig userCodeDeploymentConfig)
Set User Code Deployment configuration
|
Config |
setUserContext(ConcurrentMap<String,Object> userContext)
Sets the user supplied context.
|
Config |
setWanReplicationConfigs(Map<String,WanReplicationConfig> wanReplicationConfigs)
Sets the map of WAN replication configurations, mapped by config name.
|
String |
toString() |
public Config()
public Config(String instanceName)
public static Config load()
Config
object from an external configuration file.
It tries to load Hazelcast configuration from a list of well-known locations. When no location contains Hazelcast configuration then it returns default.
Note that the same mechanism is used when calling Hazelcast.newHazelcastInstance()
.
public ClassLoader getClassLoader()
If null
, then thread context class-loader will be used instead.
public Config setClassLoader(ClassLoader classLoader)
If not set (or set to null
); thread context class-loader
will be used in required places.
Default value is null
.
classLoader
- class-loader to be used during de-serializationpublic ConfigPatternMatcher getConfigPatternMatcher()
MatchingPointConfigPatternMatcher
is used.public void setConfigPatternMatcher(ConfigPatternMatcher configPatternMatcher)
MatchingPointConfigPatternMatcher
is used.configPatternMatcher
- the pattern matcherIllegalArgumentException
- if the pattern matcher is null
public String getProperty(String name)
name
- property namesetProperty(String, String)
,
Hazelcast System Propertiespublic Config setProperty(String name, String value)
name
- property namevalue
- value of the propertypublic MemberAttributeConfig getMemberAttributeConfig()
setProperties(Properties)
), member
attributes are exchanged with other members, e.g. on membership events.public void setMemberAttributeConfig(MemberAttributeConfig memberAttributeConfig)
setProperties(Properties)
), member
attributes are exchanged with other members, e.g. on membership events.memberAttributeConfig
- the member attribute configurationpublic Properties getProperties()
public Config setProperties(Properties properties)
properties
- the config propertiespublic String getInstanceName()
public Config setInstanceName(String instanceName)
instanceName
- the hazelcast instance namepublic GroupConfig getGroupConfig()
public Config setGroupConfig(GroupConfig groupConfig)
groupConfig
- the hazelcast group configurationpublic NetworkConfig getNetworkConfig()
public Config setNetworkConfig(NetworkConfig networkConfig)
networkConfig
- the network configurationpublic MapConfig findMapConfig(String name)
IMap
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
For non-default configurations and on-heap maps, it will also
initialise the Near Cache eviction if not previously set.
name
- name of the map configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public MapConfig getMapConfigOrNull(String name)
null
if there is none.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.name
- name of the map confignull
if none was foundConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public MapConfig getMapConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addMapConfig(MapConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the map configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addMapConfig(MapConfig mapConfig)
mapConfig
- the map configurationpublic Map<String,MapConfig> getMapConfigs()
IMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.public Config setMapConfigs(Map<String,MapConfig> mapConfigs)
IMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.mapConfigs
- the IMap configuration map to setpublic CacheSimpleConfig findCacheConfig(String name)
CacheSimpleConfig
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the cardinality estimator configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public CacheSimpleConfig findCacheConfigOrNull(String name)
null
if there is none.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.name
- name of the cache confignull
if none was foundConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public CacheSimpleConfig getCacheConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addCacheConfig(CacheSimpleConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the cache configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addCacheConfig(CacheSimpleConfig cacheConfig)
cacheConfig
- the cache configurationpublic Map<String,CacheSimpleConfig> getCacheConfigs()
public Config setCacheConfigs(Map<String,CacheSimpleConfig> cacheConfigs)
cacheConfigs
- the cacheConfigs to setpublic QueueConfig findQueueConfig(String name)
IQueue
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the queue configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public QueueConfig getQueueConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addQueueConfig(QueueConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the queue configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addQueueConfig(QueueConfig queueConfig)
queueConfig
- the queue configurationpublic Map<String,QueueConfig> getQueueConfigs()
IQueue
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.public Config setQueueConfigs(Map<String,QueueConfig> queueConfigs)
IQueue
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.queueConfigs
- the queue configuration map to setpublic LockConfig findLockConfig(String name)
ILock
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the lock configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public LockConfig getLockConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addLockConfig(LockConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the lock configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addLockConfig(LockConfig lockConfig)
lockConfig
- the lock configurationpublic Map<String,LockConfig> getLockConfigs()
ILock
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.public Config setLockConfigs(Map<String,LockConfig> lockConfigs)
ILock
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.lockConfigs
- the ILock configuration map to setpublic ListConfig findListConfig(String name)
IList
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the list configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ListConfig getListConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addListConfig(ListConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the list configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addListConfig(ListConfig listConfig)
listConfig
- the list configurationpublic Map<String,ListConfig> getListConfigs()
IList
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.public Config setListConfigs(Map<String,ListConfig> listConfigs)
IList
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.listConfigs
- the list configuration map to setpublic SetConfig findSetConfig(String name)
ISet
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the set configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public SetConfig getSetConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addSetConfig(SetConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the set configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addSetConfig(SetConfig setConfig)
setConfig
- the set configurationpublic Map<String,SetConfig> getSetConfigs()
ISet
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.public Config setSetConfigs(Map<String,SetConfig> setConfigs)
ISet
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setConfigs
- the set configuration map to setpublic MultiMapConfig findMultiMapConfig(String name)
MultiMap
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the multimap configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public MultiMapConfig getMultiMapConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addMultiMapConfig(MultiMapConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the multimap configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addMultiMapConfig(MultiMapConfig multiMapConfig)
multiMapConfig
- the multimap configurationpublic Map<String,MultiMapConfig> getMultiMapConfigs()
MultiMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.public Config setMultiMapConfigs(Map<String,MultiMapConfig> multiMapConfigs)
MultiMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.multiMapConfigs
- the multimap configuration map to setpublic ReplicatedMapConfig findReplicatedMapConfig(String name)
ReplicatedMap
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the replicated map configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ReplicatedMapConfig getReplicatedMapConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addReplicatedMapConfig(ReplicatedMapConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the replicated map configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig)
replicatedMapConfig
- the replicated map configurationpublic Map<String,ReplicatedMapConfig> getReplicatedMapConfigs()
ReplicatedMap
configurations, mapped by config name. The config name may be a pattern
with which the configuration was initially obtained.public Config setReplicatedMapConfigs(Map<String,ReplicatedMapConfig> replicatedMapConfigs)
ReplicatedMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.replicatedMapConfigs
- the replicated map configuration map to setpublic RingbufferConfig findRingbufferConfig(String name)
Ringbuffer
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the ringbuffer configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public RingbufferConfig getRingbufferConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addRingBufferConfig(RingbufferConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the ringbuffer configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addRingBufferConfig(RingbufferConfig ringbufferConfig)
ringbufferConfig
- the ringbuffer configurationpublic Map<String,RingbufferConfig> getRingbufferConfigs()
Ringbuffer
configurations, mapped by config name. The config name may be a pattern
with which the configuration was initially obtained.public Config setRingbufferConfigs(Map<String,RingbufferConfig> ringbufferConfigs)
Ringbuffer
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.ringbufferConfigs
- the ringbuffer configuration map to setpublic AtomicLongConfig findAtomicLongConfig(String name)
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the AtomicLong configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public AtomicLongConfig getAtomicLongConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addAtomicLongConfig(AtomicLongConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the AtomicLong configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addAtomicLongConfig(AtomicLongConfig atomicLongConfig)
atomicLongConfig
- the AtomicLong configurationpublic Map<String,AtomicLongConfig> getAtomicLongConfigs()
public Config setAtomicLongConfigs(Map<String,AtomicLongConfig> atomicLongConfigs)
atomicLongConfigs
- the AtomicLong configuration map to setpublic AtomicReferenceConfig findAtomicReferenceConfig(String name)
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the AtomicReference configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public AtomicReferenceConfig getAtomicReferenceConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addAtomicReferenceConfig(AtomicReferenceConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the AtomicReference configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addAtomicReferenceConfig(AtomicReferenceConfig atomicReferenceConfig)
atomicReferenceConfig
- the AtomicReference configurationpublic Map<String,AtomicReferenceConfig> getAtomicReferenceConfigs()
public Config setAtomicReferenceConfigs(Map<String,AtomicReferenceConfig> atomicReferenceConfigs)
atomicReferenceConfigs
- the AtomicReference configuration map to setpublic CountDownLatchConfig findCountDownLatchConfig(String name)
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the CountDownLatch configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public CountDownLatchConfig getCountDownLatchConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addCountDownLatchConfig(CountDownLatchConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the CountDownLatch configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addCountDownLatchConfig(CountDownLatchConfig countDownLatchConfig)
countDownLatchConfig
- the CountDownLatch configurationpublic Map<String,CountDownLatchConfig> getCountDownLatchConfigs()
public Config setCountDownLatchConfigs(Map<String,CountDownLatchConfig> countDownLatchConfigs)
countDownLatchConfigs
- the CountDownLatch configuration map to setpublic TopicConfig findTopicConfig(String name)
ITopic
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the topic configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public TopicConfig getTopicConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addTopicConfig(TopicConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the topic configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addTopicConfig(TopicConfig topicConfig)
topicConfig
- the topic configurationpublic ReliableTopicConfig findReliableTopicConfig(String name)
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the reliable topic configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ReliableTopicConfig getReliableTopicConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addReliableTopicConfig(ReliableTopicConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the reliable topic configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Map<String,ReliableTopicConfig> getReliableTopicConfigs()
public Config addReliableTopicConfig(ReliableTopicConfig topicConfig)
topicConfig
- the reliable topic configurationpublic Config setReliableTopicConfigs(Map<String,ReliableTopicConfig> reliableTopicConfigs)
reliableTopicConfigs
- the reliable topic configuration map to setpublic Map<String,TopicConfig> getTopicConfigs()
public Config setTopicConfigs(Map<String,TopicConfig> topicConfigs)
ITopic
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.topicConfigs
- the topic configuration map to setpublic ExecutorConfig findExecutorConfig(String name)
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the executor configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public DurableExecutorConfig findDurableExecutorConfig(String name)
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the durable executor configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ScheduledExecutorConfig findScheduledExecutorConfig(String name)
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the scheduled executor configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public CardinalityEstimatorConfig findCardinalityEstimatorConfig(String name)
CardinalityEstimator
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the cardinality estimator configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public PNCounterConfig findPNCounterConfig(String name)
PNCounterConfig
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the PN counter configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ExecutorConfig getExecutorConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addExecutorConfig(ExecutorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the executor configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public DurableExecutorConfig getDurableExecutorConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addDurableExecutorConfig(DurableExecutorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the durable executor configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public ScheduledExecutorConfig getScheduledExecutorConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addScheduledExecutorConfig(ScheduledExecutorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the scheduled executor configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public CardinalityEstimatorConfig getCardinalityEstimatorConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addCardinalityEstimatorConfig(CardinalityEstimatorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the cardinality estimator configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public PNCounterConfig getPNCounterConfig(String name)
PNCounterConfig
for the given name, creating one
if necessary and adding it to the collection of known configurations.
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addPNCounterConfig(PNCounterConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the PN counter configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addExecutorConfig(ExecutorConfig executorConfig)
executorConfig
- executor config to addpublic Config addDurableExecutorConfig(DurableExecutorConfig durableExecutorConfig)
durableExecutorConfig
- durable executor config to addpublic Config addScheduledExecutorConfig(ScheduledExecutorConfig scheduledExecutorConfig)
scheduledExecutorConfig
- scheduled executor config to addpublic Config addCardinalityEstimatorConfig(CardinalityEstimatorConfig cardinalityEstimatorConfig)
cardinalityEstimatorConfig
- cardinality estimator config to addpublic Config addPNCounterConfig(PNCounterConfig pnCounterConfig)
pnCounterConfig
- PN counter config to addpublic Map<String,ExecutorConfig> getExecutorConfigs()
public Config setExecutorConfigs(Map<String,ExecutorConfig> executorConfigs)
executorConfigs
- the executor configuration map to setpublic Map<String,DurableExecutorConfig> getDurableExecutorConfigs()
public Config setDurableExecutorConfigs(Map<String,DurableExecutorConfig> durableExecutorConfigs)
durableExecutorConfigs
- the durable executor configuration map to setpublic Map<String,ScheduledExecutorConfig> getScheduledExecutorConfigs()
public Config setScheduledExecutorConfigs(Map<String,ScheduledExecutorConfig> scheduledExecutorConfigs)
scheduledExecutorConfigs
- the scheduled executor configuration
map to setpublic Map<String,CardinalityEstimatorConfig> getCardinalityEstimatorConfigs()
public Config setCardinalityEstimatorConfigs(Map<String,CardinalityEstimatorConfig> cardinalityEstimatorConfigs)
cardinalityEstimatorConfigs
- the cardinality estimator
configuration map to setpublic Map<String,PNCounterConfig> getPNCounterConfigs()
public Config setPNCounterConfigs(Map<String,PNCounterConfig> pnCounterConfigs)
pnCounterConfigs
- the PN counter configuration map to setpublic SemaphoreConfig findSemaphoreConfig(String name)
ISemaphore
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the semaphore configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public SemaphoreConfig getSemaphoreConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addSemaphoreConfig(SemaphoreConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the semaphore configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addSemaphoreConfig(SemaphoreConfig semaphoreConfig)
ISemaphore
configuration.
The configuration is saved under the config name, which may be a
pattern with which the configuration will be obtained in the future.semaphoreConfig
- semaphoreConfig config to addpublic Collection<SemaphoreConfig> getSemaphoreConfigs()
ISemaphore
configs
added to this config object.public Map<String,SemaphoreConfig> getSemaphoreConfigsAsMap()
ISemaphore
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.public Config setSemaphoreConfigs(Map<String,SemaphoreConfig> semaphoreConfigs)
semaphoreConfigs
- the semaphore configuration map to setpublic WanReplicationConfig getWanReplicationConfig(String name)
name
.name
- the WAN replication config namepublic Config addWanReplicationConfig(WanReplicationConfig wanReplicationConfig)
WanReplicationConfig.getName()
.wanReplicationConfig
- the WAN replication configpublic Map<String,WanReplicationConfig> getWanReplicationConfigs()
public Config setWanReplicationConfigs(Map<String,WanReplicationConfig> wanReplicationConfigs)
wanReplicationConfigs
- the WAN replication configuration map to setpublic JobTrackerConfig findJobTrackerConfig(String name)
JobTracker
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the job tracker configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public JobTrackerConfig getJobTrackerConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addJobTrackerConfig(JobTrackerConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the job tracker configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addJobTrackerConfig(JobTrackerConfig jobTrackerConfig)
JobTracker
configuration.
The configuration is saved under the config name defined by
JobTrackerConfig.getName()
.jobTrackerConfig
- semaphoreConfig config to addpublic Map<String,JobTrackerConfig> getJobTrackerConfigs()
JobTracker
configurations, mapped by config name. The config name may be a pattern
with which the configuration was initially obtained.public Config setJobTrackerConfigs(Map<String,JobTrackerConfig> jobTrackerConfigs)
jobTrackerConfigs
- the job tracker configuration map to setpublic Map<String,QuorumConfig> getQuorumConfigs()
public QuorumConfig getQuorumConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addQuorumConfig(QuorumConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the split-brain protection configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public QuorumConfig findQuorumConfig(String name)
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the split-brain protection configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public Config setQuorumConfigs(Map<String,QuorumConfig> quorumConfigs)
quorumConfigs
- the split-brain protection configuration map to setpublic Config addQuorumConfig(QuorumConfig quorumConfig)
QuorumConfig.getName()
.quorumConfig
- split-brain protection config to addpublic ManagementCenterConfig getManagementCenterConfig()
public Config setManagementCenterConfig(ManagementCenterConfig managementCenterConfig)
managementCenterConfig
- the management center configurationpublic ServicesConfig getServicesConfig()
public Config setServicesConfig(ServicesConfig servicesConfig)
servicesConfig
- the user services configurationpublic SecurityConfig getSecurityConfig()
public Config setSecurityConfig(SecurityConfig securityConfig)
securityConfig
- the security configurationpublic Config addListenerConfig(ListenerConfig listenerConfig)
EventListener
. This includes
listeners for events related to this instance/member or the cluster,
such as partition, migration, cluster version listeners, etc. but not
listeners on specific distributed data structures.listenerConfig
- the listener configurationpublic List<ListenerConfig> getListenerConfigs()
EventListener
configurations. This includes
listeners for events related to this instance/member or the cluster,
such as partition, migration, cluster version listeners, etc. but not
listeners on specific distributed data structures.public Config setListenerConfigs(List<ListenerConfig> listenerConfigs)
EventListener
configurations. This includes
listeners for events related to this instance/member or the cluster,
such as partition, migration, cluster version listeners, etc. but not
listeners on specific distributed data structures.listenerConfigs
- the listener configurationspublic EventJournalConfig findMapEventJournalConfig(String name)
EventJournal
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the map event journal configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public EventJournalConfig findCacheEventJournalConfig(String name)
EventJournal
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the cache event journal configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public EventJournalConfig getMapEventJournalConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
If there is no default config as well, it will create one and disable
the event journal by default.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addEventJournalConfig(EventJournalConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the map event journal configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public EventJournalConfig getCacheEventJournalConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
If there is no default config as well, it will create one and disable
the event journal by default.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addEventJournalConfig(EventJournalConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the cache event journal configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addEventJournalConfig(EventJournalConfig eventJournalConfig)
EventJournalConfig.getMapName()
means the configuration applies to maps and a non-empty value for
EventJournalConfig.getCacheName()
means the configuration
applies to caches.
The returned name may be a pattern with which the configuration
will be obtained in the future.eventJournalConfig
- the event journal configurationIllegalArgumentException
- if the
EventJournalConfig.getMapName()
and
EventJournalConfig.getCacheName()
are both emptypublic MerkleTreeConfig findMapMerkleTreeConfig(String name)
MerkleTreeConfig
for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
name
- name of the map merkle tree configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public MerkleTreeConfig getMapMerkleTreeConfig(String name)
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
If there is no default config as well, it will create one and disable
the merkle tree by default.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
addMerkleTreeConfig(MerkleTreeConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the map merkle tree configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addMerkleTreeConfig(MerkleTreeConfig merkleTreeConfig)
MerkleTreeConfig.getMapName()
may be a
pattern with which the configuration will be obtained in the future.merkleTreeConfig
- the merkle tree configurationIllegalArgumentException
- if the MerkleTreeConfig.getMapName()
is emptypublic Map<String,FlakeIdGeneratorConfig> getFlakeIdGeneratorConfigs()
FlakeIdGenerator
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.public FlakeIdGeneratorConfig findFlakeIdGeneratorConfig(String name)
FlakeIdGeneratorConfig
configuration for the given flake ID generator name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name "default"
.
name
- name of the flake ID generator configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public FlakeIdGeneratorConfig getFlakeIdGeneratorConfig(String name)
FlakeIdGeneratorConfig
for the given name, creating
one if necessary and adding it to the collection of known configurations.
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking addFlakeIdGeneratorConfig(FlakeIdGeneratorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
name
- name of the flake ID generator configConfigurationException
- if ambiguous configurations are foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
setConfigPatternMatcher(ConfigPatternMatcher)
,
getConfigPatternMatcher()
public Config addFlakeIdGeneratorConfig(FlakeIdGeneratorConfig config)
config
- the flake ID generator configurationpublic Config setFlakeIdGeneratorConfigs(Map<String,FlakeIdGeneratorConfig> map)
FlakeIdGenerator
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.map
- the FlakeIdGenerator configuration map to setpublic Map<String,EventJournalConfig> getMapEventJournalConfigs()
public Map<String,EventJournalConfig> getCacheEventJournalConfigs()
public Config setMapEventJournalConfigs(Map<String,EventJournalConfig> eventJournalConfigs)
eventJournalConfigs
- the map event journal configuration map to setpublic Config setCacheEventJournalConfigs(Map<String,EventJournalConfig> eventJournalConfigs)
eventJournalConfigs
- the cache event journal configuration map to setpublic Map<String,MerkleTreeConfig> getMapMerkleTreeConfigs()
public Config setMapMerkleTreeConfigs(Map<String,MerkleTreeConfig> merkleTreeConfigs)
merkleTreeConfigs
- the map merkle tree configuration map to setpublic SerializationConfig getSerializationConfig()
public Config setSerializationConfig(SerializationConfig serializationConfig)
serializationConfig
- the serialization configurationpublic PartitionGroupConfig getPartitionGroupConfig()
public Config setPartitionGroupConfig(PartitionGroupConfig partitionGroupConfig)
partitionGroupConfig
- the partition group configurationpublic HotRestartPersistenceConfig getHotRestartPersistenceConfig()
public Config setHotRestartPersistenceConfig(HotRestartPersistenceConfig hrConfig)
hrConfig
- Hot Restart configurationNullPointerException
- if the hrConfig
parameter is null
public CRDTReplicationConfig getCRDTReplicationConfig()
public Config setCRDTReplicationConfig(CRDTReplicationConfig crdtReplicationConfig)
CRDT
implementations.crdtReplicationConfig
- the replication configurationNullPointerException
- if the crdtReplicationConfig
parameter is null
public ManagedContext getManagedContext()
public Config setManagedContext(ManagedContext managedContext)
managedContext
- the managed contextpublic ConcurrentMap<String,Object> getUserContext()
HazelcastInstance
.HazelcastInstance.getUserContext()
public Config setUserContext(ConcurrentMap<String,Object> userContext)
HazelcastInstance
.userContext
- the user supplied contextHazelcastInstance.getUserContext()
public NativeMemoryConfig getNativeMemoryConfig()
public Config setNativeMemoryConfig(NativeMemoryConfig nativeMemoryConfig)
nativeMemoryConfig
- the native memory configurationpublic URL getConfigurationUrl()
URL
to the declarative configuration, which has been parsed
to create this Config
instance.null
otherwisepublic Config setConfigurationUrl(URL configurationUrl)
URL
from which this configuration has been retrieved
and created.
Is set by the XmlConfigBuilder
, when the XML configuration was
retrieved from a URL.
configurationUrl
- the configuration URL to setpublic File getConfigurationFile()
File
to the declarative configuration, which has been
parsed to create this Config
instance.null
otherwisepublic Config setConfigurationFile(File configurationFile)
File
from which this configuration has been retrieved
and created.
Is set by the XmlConfigBuilder
, when the XML configuration was
retrieved from a file.
configurationFile
- the configuration file to setpublic String getLicenseKey()
SecurityException
- If a security manager exists and the calling method doesn't have corresponding
HazelcastRuntimePermission
public Config setLicenseKey(String licenseKey)
licenseKey
- the license keypublic boolean isLiteMember()
true
if this member is a lite member. A lite member
does not own any partitions.true
if this member is a lite memberpublic Config setLiteMember(boolean liteMember)
liteMember
- if this member is a lite memberpublic UserCodeDeploymentConfig getUserCodeDeploymentConfig()
public Config setUserCodeDeploymentConfig(UserCodeDeploymentConfig userCodeDeploymentConfig)
userCodeDeploymentConfig
- the user code deployment configurationpublic AdvancedNetworkConfig getAdvancedNetworkConfig()
public Config setAdvancedNetworkConfig(AdvancedNetworkConfig advancedNetworkConfig)
public CPSubsystemConfig getCPSubsystemConfig()
public Config setCPSubsystemConfig(CPSubsystemConfig cpSubsystemConfig)
cpSubsystemConfig
- the CP subsystem configurationCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.