Package com.hazelcast.spring.config
Class ConfigFactory
java.lang.Object
com.hazelcast.spring.config.ConfigFactory
Provides factory methods for
Config
and ClientConfig
.
This class is used in HazelcastConfigBeanDefinitionParser
,
HazelcastClientBeanDefinitionParser
and
HazelcastFailoverClientBeanDefinitionParser
to create
`empty` configuration instances. This factory can be used to
pre-configure the configuration instances, see
CustomSpringJUnit4ClassRunner
for the usage.-
Method Summary
Modifier and TypeMethodDescriptionstatic AliasedDiscoveryConfig
newAliasedDiscoveryConfig
(String tag, Map<String, String> properties) static ClientConfig
static ClientFailoverConfig
static CompactSerializationConfig
newCompactSerializationConfig
(List<String> serializerClassNames, List<String> compactSerializableClassNames) static Config
static EvictionConfig
newEvictionConfig
(Integer maxSize, MaxSizePolicy maxSizePolicy, EvictionPolicy evictionPolicy, boolean isNearCache, boolean isIMap, String comparatorClassName, EvictionPolicyComparator<?, ?, ?> comparator)
-
Method Details
-
newConfig
-
newClientConfig
-
newClientFailoverConfig
-
newEvictionConfig
public static EvictionConfig newEvictionConfig(Integer maxSize, MaxSizePolicy maxSizePolicy, EvictionPolicy evictionPolicy, boolean isNearCache, boolean isIMap, String comparatorClassName, EvictionPolicyComparator<?, ?, ?> comparator) -
newAliasedDiscoveryConfig
public static AliasedDiscoveryConfig newAliasedDiscoveryConfig(String tag, Map<String, String> properties) -
newCompactSerializationConfig
public static CompactSerializationConfig newCompactSerializationConfig(List<String> serializerClassNames, List<String> compactSerializableClassNames)
-