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
AMemcachedHashingStrategy
which 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 StandardMemcachedHashingStrategy
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
hash(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:MemcachedHashingStrategy
The hash for each node based on the node information and repetition.- Specified by:
hash
in interfaceMemcachedHashingStrategy
- Parameters:
info
- the node inforepetition
- the repetition- Returns:
- the hashed node
-
-