Package com.couchbase.client.core.node
Class LegacyMemcachedHashingStrategy
- java.lang.Object
-
- com.couchbase.client.core.node.LegacyMemcachedHashingStrategy
-
- All Implemented Interfaces:
MemcachedHashingStrategy
public class LegacyMemcachedHashingStrategy extends Object implements MemcachedHashingStrategy
The legacy memcache bucket hashing strategy, compatible with Java SDK 1.x.- Since:
- 2.3.6
- Author:
- Michael Nitschinger
-
-
Field Summary
Fields Modifier and Type Field Description static LegacyMemcachedHashingStrategy
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 LegacyMemcachedHashingStrategy 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
-
-