Class CouchbaseBucketTopology

java.lang.Object
com.couchbase.client.core.topology.CouchbaseBucketTopology
All Implemented Interfaces:
BucketTopology

@Internal public class CouchbaseBucketTopology extends Object
  • Constructor Details

  • Method Details

    • ephemeral

      public boolean ephemeral()
    • numberOfPartitions

      public int numberOfPartitions()
    • numberOfReplicas

      public int numberOfReplicas()
    • partitions

      public PartitionMap partitions()
    • partitionsForward

      public Optional<PartitionMap> partitionsForward()
    • hasPrimaryPartitionsOnNode

      public boolean hasPrimaryPartitionsOnNode(NodeIdentifier id)
    • nodeIndexForActive

      @Deprecated public int nodeIndexForActive(int partition, boolean forward)
      Deprecated.
    • nodeIndexForReplica

      @Deprecated public int nodeIndexForReplica(int partition, int replica, boolean forward)
      Deprecated.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • nodes

      public List<HostAndServicePorts> 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 interface BucketTopology
    • name

      public String name()
      Description copied from interface: BucketTopology
      Returns the name of the bucket.
      Specified by:
      name in interface BucketTopology
    • uuid

      public String 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 interface BucketTopology
    • capabilities

      public Set<BucketCapability> capabilities()
      Specified by:
      capabilities in interface BucketTopology