Class MemcachedBucketConfig

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

public class MemcachedBucketConfig
extends AbstractBucketConfig
  • Constructor Details

  • Method Details

    • tainted

      public boolean tainted()
      Description copied from interface: BucketConfig
      Returns true if the config indicates the cluster is undergoing a transition (such as a rebalance operation).
      Returns:
      true if a transition is in progress.
    • rev

      public long rev()
      Description copied from interface: BucketConfig
      Revision number (optional) for that configuration.
      Returns:
      the rev number, might be 0.
    • type

      public BucketType type()
      Description copied from interface: BucketConfig
      The bucket type.
      Returns:
      the bucket type.
    • ketamaNodes

      public SortedMap<Long,​NodeInfo> ketamaNodes()
    • nodeForId

      public NodeIdentifier nodeForId​(byte[] id)
    • hasFastForwardMap

      public boolean hasFastForwardMap()
      Description copied from interface: BucketConfig
      Returns true if the config has a fast forward map that describes what the topology of the cluster will be after the current rebalance operation completes.
      Returns:
      true if it does, false otherwise.
    • toString

      public String toString()
      Note that dumping the whole ring is pretty much useless, so here we focus on just dumping all the nodes that participate in the cluster instead.
      Overrides:
      toString in class Object
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object