Package com.couchbase.client.core.node
Class StandardMemcachedHashingStrategy
java.lang.Object
com.couchbase.client.core.node.StandardMemcachedHashingStrategy
- All Implemented Interfaces:
MemcachedHashingStrategy
The default strategy, compatible with libcouchbase and related SDKs.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionhash(KetamaRingNode info, int repetition) The hash for each node based on the node information and repetition.
-
Field Details
-
INSTANCE
-
-
Method Details
-
hash
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
-