org.infinispan.config
Interface Configuration.HashConfig

All Known Implementing Classes:
Configuration.HashType
Enclosing class:
Configuration

public static interface Configuration.HashConfig

Allows fine-tuning of rehashing characteristics. Only used with 'distributed' cache mode, and otherwise ignored.

Since:
5.0
Author:
Vladimir Blagojevic

Method Summary
 Configuration.HashConfig consistentHashClass(String consistentHashClass)
          Fully qualified name of class providing consistent hash algorithm
 Configuration.HashConfig hashFunctionClass(String hashFunctionClass)
          A fully qualified name of the class providing a hash function, used as a bit spreader and a general hash code generator.
 Configuration.HashConfig numOwners(Integer numOwners)
          Number of cluster-wide replicas for each cache entry.
 Configuration.HashConfig rehashEnabled(Boolean rehashEnabled)
          If false, no rebalancing or rehashing will take place when a new node joins the cluster or a node leaves
 Configuration.HashConfig rehashRpcTimeout(Long rehashRpcTimeout)
          Rehashing timeout
 Configuration.HashConfig rehashWait(Long rehashWaitTime)
           
 

Method Detail

consistentHashClass

Configuration.HashConfig consistentHashClass(String consistentHashClass)
Fully qualified name of class providing consistent hash algorithm

Parameters:
consistentHashClass -

hashFunctionClass

Configuration.HashConfig hashFunctionClass(String hashFunctionClass)
A fully qualified name of the class providing a hash function, used as a bit spreader and a general hash code generator. Typically used in conjunction with the many default ConsistentHash implementations shipped.

Parameters:
hashFunctionClass -

numOwners

Configuration.HashConfig numOwners(Integer numOwners)
Number of cluster-wide replicas for each cache entry.

Parameters:
numOwners -

rehashWait

Configuration.HashConfig rehashWait(Long rehashWaitTime)

rehashRpcTimeout

Configuration.HashConfig rehashRpcTimeout(Long rehashRpcTimeout)
Rehashing timeout

Parameters:
rehashRpcTimeout -

rehashEnabled

Configuration.HashConfig rehashEnabled(Boolean rehashEnabled)
If false, no rebalancing or rehashing will take place when a new node joins the cluster or a node leaves

Parameters:
rehashEnabled -


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