Class CollectionSpec

java.lang.Object
com.couchbase.client.java.manager.collection.CollectionSpec

public class CollectionSpec extends Object
The CollectionSpec describes properties of a collection that can be managed.
  • Field Details

    • SAME_EXPIRY_AS_BUCKET

      @Volatile public static final Duration SAME_EXPIRY_AS_BUCKET
      A special collection "max expiry" value that means the collection's max expiry is always the same as the bucket's max expiry.

      Use the bucket management API to discover the actual expiry value.

    • NEVER_EXPIRE

      @SinceCouchbase("7.6") @Volatile public static final Duration NEVER_EXPIRE
      A special collection "max expiry" value that means documents in the collection never expire, regardless of the bucket's max expiry setting.

      Requires Couchbase Server 7.6 or later.

  • Method Details