public class KetamaNodeKeyFormatter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KetamaNodeKeyFormatter.Format |
| Constructor and Description |
|---|
KetamaNodeKeyFormatter() |
KetamaNodeKeyFormatter(KetamaNodeKeyFormatter.Format format) |
| Modifier and Type | Method and Description |
|---|---|
KetamaNodeKeyFormatter.Format |
getFormat() |
java.lang.String |
getKeyForNode(MemcachedNode node,
int repetition)
Returns a uniquely identifying key, suitable for hashing by the
KetamaNodeLocator algorithm.
|
public KetamaNodeKeyFormatter()
public KetamaNodeKeyFormatter(KetamaNodeKeyFormatter.Format format)
public KetamaNodeKeyFormatter.Format getFormat()
public 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)Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.