Class CouchbaseBucketConfig

java.lang.Object
com.couchbase.client.dcp.core.config.AbstractBucketConfig
com.couchbase.client.dcp.core.config.CouchbaseBucketConfig
All Implemented Interfaces:
BucketConfig

public class CouchbaseBucketConfig extends AbstractBucketConfig
  • 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

      @Deprecated public boolean hasPrimaryPartitionsOnNode(String hostname)
      Deprecated.
      This check is not robust in a world where multiple nodes can share the same host. A safer approach would be to consider the KV port as well.
    • 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