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
-
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: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
-