public class ConsistentHashFactory extends Object
ConsistentHash function. It will try to look
into the configuration for consistent hash definitions as follows:
consistent-hash.[version]=[fully qualified class implementing ConsistentHash]
e.g.
infinispan.client.hotrod.hash_function_impl.3=org.infinispan.client.hotrod.impl.consistenthash.SegmentConsistentHash
or if using the Configuration API,
configuration.consistentHashImpl(3, org.infinispan.client.hotrod.impl.consistenthash.SegmentConsistentHash.class);
The defaults are:
| Constructor and Description |
|---|
ConsistentHashFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Configuration configuration) |
<T extends ConsistentHash> |
newConsistentHash(int version) |
public void init(Configuration configuration)
public <T extends ConsistentHash> T newConsistentHash(int version)
Copyright © 2022 JBoss by Red Hat. All rights reserved.