use of org.infinispan.distribution.group.impl.GroupingPartitioner in project wildfly by wildfly.
the class KeyPartitionerFactory method construct.
@Override
public Object construct(String componentName) {
if (!this.configuration.clustering().cacheMode().isClustered() && !this.configuration.persistence().usingSegmentedStore()) {
return SingleSegmentKeyPartitioner.getInstance();
}
HashConfiguration hashConfiguration = this.configuration.clustering().hash();
KeyPartitioner partitioner = hashConfiguration.keyPartitioner();
partitioner.init(hashConfiguration);
this.basicComponentRegistry.wireDependencies(partitioner, false);
return (this.groupManager != null) ? new GroupingPartitioner(partitioner, this.groupManager) : partitioner;
}
Aggregations