org.infinispan.configuration.cache
Class HashConfiguration

java.lang.Object
  extended by org.infinispan.configuration.cache.HashConfiguration

public class HashConfiguration
extends Object

Allows fine-tuning of rehashing characteristics. Must only used with 'distributed' cache mode.

Author:
pmuir

Method Summary
 ConsistentHash consistentHash()
          The consistent hash 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 numVirtualNodes()
           Controls the number of virtual nodes per "real" node.
 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

consistentHash

public ConsistentHash consistentHash()
The consistent hash in use.


hash

public Hash hash()
The hash function in use. Used as a bit spreader and a general hash code generator. Typically one of the the many default ConsistentHash implementations shipped.


numOwners

public int numOwners()
Number of cluster-wide replicas for each cache entry.


numVirtualNodes

public int numVirtualNodes()

Controls the number of virtual nodes per "real" node. You can read more about virtual nodes in Infinispan's online user guide.

If numVirtualNodes is 1, then virtual nodes are disabled. The topology aware consistent hash must be used if you wish to take advnatage of virtual nodes.

A default of 1 is used.


rehashEnabled

@Deprecated
public boolean rehashEnabled()
Deprecated. Use StateTransferConfiguration.fetchInMemoryState() instead.

If false, no rebalancing or rehashing will take place when a new node joins the cluster or a node leaves


rehashRpcTimeout

@Deprecated
public long rehashRpcTimeout()
Deprecated. Use StateTransferConfiguration.timeout() instead.

Rehashing timeout


rehashWait

@Deprecated
public long rehashWait()
Deprecated. Use StateTransferConfiguration.timeout() instead.


groups

public GroupsConfiguration groups()
Configuration for various grouper definitions. See the user guide for more information.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.