Class MemcachedBucketTopology
java.lang.Object
com.couchbase.client.core.topology.MemcachedBucketTopology
- All Implemented Interfaces:
BucketTopology
-
Constructor Summary
ConstructorsConstructorDescriptionMemcachedBucketTopology
(String uuid, String name, Set<BucketCapability> capabilities, List<HostAndServicePorts> nodes, KetamaRing<HostAndServicePorts> ketamaRing, MemcachedHashingStrategy hashingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionname()
Returns the name of the bucket.nodeForKey
(byte[] id) nodes()
Returns the subset of cluster nodes that are ready to service requests for this bucket.toString()
uuid()
Returns the UUID of the bucket.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.topology.BucketTopology
hasCapability
-
Constructor Details
-
MemcachedBucketTopology
public MemcachedBucketTopology(String uuid, String name, Set<BucketCapability> capabilities, List<HostAndServicePorts> nodes, KetamaRing<HostAndServicePorts> ketamaRing, MemcachedHashingStrategy hashingStrategy)
-
-
Method Details
-
nodeForKey
-
hashingStrategy
-
toString
-
nodes
Description copied from interface:BucketTopology
Returns the subset of cluster nodes that are ready to service requests for this bucket.This method is a candidate for eventual removal, since it's used only by unit tests and the code that converts a BucketTopology to a legacy
BucketConfig
.- Specified by:
nodes
in interfaceBucketTopology
-
name
Description copied from interface:BucketTopology
Returns the name of the bucket.- Specified by:
name
in interfaceBucketTopology
-
uuid
Description copied from interface:BucketTopology
Returns the UUID of the bucket.The UUID is an opaque value assigned when the bucket is created. If the bucket is deleted and a new bucket is created with the same name, the new bucket will have a different UUID.
- Specified by:
uuid
in interfaceBucketTopology
-
capabilities
- Specified by:
capabilities
in interfaceBucketTopology
-