use of com.hazelcast.config.PartitioningStrategyConfig in project hazelcast by hazelcast.
the class PartitionControlledIdTest method startHazelcastInstances.
@BeforeClass
public static void startHazelcastInstances() {
Config config = new Config();
PartitioningStrategy partitioningStrategy = StringAndPartitionAwarePartitioningStrategy.INSTANCE;
config.getMapConfig("default").setPartitioningStrategyConfig(new PartitioningStrategyConfig(partitioningStrategy));
TestHazelcastInstanceFactory instanceFactory = new TestHazelcastInstanceFactory(4);
instances = instanceFactory.newInstances(config);
warmUpPartitions(instances);
}
Aggregations