Package com.couchbase.client.core.node
Class StandardMemcachedHashingStrategy
- java.lang.Object
-
- com.couchbase.client.core.node.StandardMemcachedHashingStrategy
-
- All Implemented Interfaces:
MemcachedHashingStrategy
public class StandardMemcachedHashingStrategy extends Object implements MemcachedHashingStrategy
AMemcachedHashingStrategywhich is compatible with libcouchbase and SDKs that are built on top.- Since:
- 1.5.3
- Author:
- Michael Nitschinger
-
-
Field Summary
Fields Modifier and Type Field Description static StandardMemcachedHashingStrategyINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringhash(NodeInfo info, int repetition)The hash for each node based on the node information and repetition.
-
-
-
Field Detail
-
INSTANCE
public static final StandardMemcachedHashingStrategy INSTANCE
-
-
Method Detail
-
hash
public String hash(NodeInfo info, int repetition)
Description copied from interface:MemcachedHashingStrategyThe hash for each node based on the node information and repetition.- Specified by:
hashin interfaceMemcachedHashingStrategy- Parameters:
info- the node inforepetition- the repetition- Returns:
- the hashed node
-
-