use of org.infinispan.distribution.ch.impl.DefaultConsistentHashFactory in project wildfly by wildfly.
the class DistributedCacheBuilder method accept.
@Override
public void accept(ConfigurationBuilder builder) {
super.accept(builder);
HashConfigurationBuilder hash = builder.clustering().l1().read(this.l1).hash().read(this.hash);
// ConsistentHashStrategy.INTER_CACHE is Infinispan's default behavior
if (this.consistentHashStrategy == ConsistentHashStrategy.INTRA_CACHE) {
hash.consistentHashFactory(this.global.getValue().transport().hasTopologyInfo() ? new TopologyAwareConsistentHashFactory() : new DefaultConsistentHashFactory());
}
}
Aggregations