public interface KetamaNodeLocatorConfiguration
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKeyForNode(MemcachedNode node,
int repetition)
Returns a uniquely identifying key, suitable for hashing by the
KetamaNodeLocator algorithm.
|
int |
getNodeRepetitions()
Returns the number of discrete hashes that should be defined for each node
in the continuum.
|
java.lang.String getKeyForNode(MemcachedNode node, int repetition)
node
- The MemcachedNode to use to form the unique identifierrepetition
- The repetition number for the particular node in question
(0 is the first repetition)int getNodeRepetitions()
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.