Package com.couchbase.client.core.config
Class KetamaRing<E>
- java.lang.Object
-
- com.couchbase.client.core.config.KetamaRing<E>
-
- Type Parameters:
E
- The type of values in the ring.
@Internal public final class KetamaRing<E> extends Object
A Ketama ring (or "continuum", if you prefer) with Couchbase-specific parameters defined by Couchbase SDK RFC 26 (Ketama Hashing)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KetamaRing<NodeInfo>
create(List<NodeInfo> nodes, MemcachedHashingStrategy strategy)
E
get(byte[] key)
Returns the value associated with the key.
-
-
-
Method Detail
-
create
public static KetamaRing<NodeInfo> create(List<NodeInfo> nodes, MemcachedHashingStrategy strategy)
-
get
public E get(byte[] key)
Returns the value associated with the key.
-
-