public final class PartitioningStrategyFactory extends Object
PartitioningStrategy
instances.Modifier and Type | Method and Description |
---|---|
static PartitioningStrategy |
getPartitioningStrategy(NodeEngine nodeEngine,
String mapName,
PartitioningStrategyConfig config)
|
static void |
removePartitioningStrategyFromCache(String mapName)
Remove the cached
PartitioningStrategy from the internal cache, if it exists. |
public static PartitioningStrategy getPartitioningStrategy(NodeEngine nodeEngine, String mapName, PartitioningStrategyConfig config)
PartitioningStrategy
for the given NodeEngine
and PartitioningStrategyConfig
. This method
first attempts locating a PartitioningStrategy
in {code config.getPartitioningStrategy()}. If this is null
,
then looks up its internal cache of partitioning strategies; if one has already been created for the given
mapName
, it is returned, otherwise it is instantiated, cached and returned.nodeEngine
- Hazelcast NodeEnginemapName
- Map for which this partitioning strategy is being createdconfig
- the partitioning strategy configurationpublic static void removePartitioningStrategyFromCache(String mapName)
PartitioningStrategy
from the internal cache, if it exists.mapName
- name of the map whose partitioning strategy will be removed from internal cacheCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.