|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.configuration.cache.HashConfiguration
public class HashConfiguration
Allows fine-tuning of rehashing characteristics. Must only used with 'distributed' cache mode.
Method Summary | |
---|---|
ConsistentHash |
consistentHash()
Deprecated. Since 5.2, replaced by consistentHashFactory() . |
ConsistentHashFactory |
consistentHashFactory()
The consistent hash factory in use. |
boolean |
equals(Object o)
|
GroupsConfiguration |
groups()
Configuration for various grouper definitions. |
Hash |
hash()
The hash function in use. |
int |
hashCode()
|
int |
numOwners()
Number of cluster-wide replicas for each cache entry. |
int |
numSegments()
Controls the total number of hash space segments (per cluster). |
int |
numVirtualNodes()
Deprecated. No longer used since 5.2, replaced by numSegments() (which works like a
numVirtualNodes value for the entire cluster). |
boolean |
rehashEnabled()
Deprecated. Use StateTransferConfiguration.fetchInMemoryState() instead. |
long |
rehashRpcTimeout()
Deprecated. Use StateTransferConfiguration.timeout() instead. |
long |
rehashWait()
Deprecated. Use StateTransferConfiguration.timeout() instead. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
@Deprecated public ConsistentHash consistentHash()
consistentHashFactory()
.
public ConsistentHashFactory consistentHashFactory()
public Hash hash()
ConsistentHash
implementations shipped.
public int numOwners()
@Deprecated public int numVirtualNodes()
numSegments()
(which works like a
numVirtualNodes
value for the entire cluster).
public int numSegments()
A hash space segment is the granularity for key distribution in the cluster: a node can own
(or primary-own) one or more full segments, but not a fraction of a segment. As such, larger
numSegments
values will mean a more even distribution of keys between nodes.
On the other hand, the memory/bandwidth usage of the new consistent hash grows linearly with
numSegments
. So we recommend keeping numSegments <= 10 * clusterSize
.
@Deprecated public boolean rehashEnabled()
StateTransferConfiguration.fetchInMemoryState()
instead.
@Deprecated public long rehashRpcTimeout()
StateTransferConfiguration.timeout()
instead.
@Deprecated public long rehashWait()
StateTransferConfiguration.timeout()
instead.
public GroupsConfiguration groups()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |