update Collection
@SinceCouchbase(value = "7.2" )
Content copied to clipboard
Modifies an existing collection.
Parameters
scope Name
Name of the parent scope. This scope must already exist.
collection Name
Name of the collection to update. This collection must already exist.
max Expiry
New value for the maximum expiry for documents in the collection. Pass null to leave unmodified. Pass Duration.ZERO to have the collection's max expiry always be the same as the bucket's max expiry. If using Couchbase Server 7.6 or later, pass CollectionSpec.NEVER_EXPIRE (or -1 seconds) to have documents in the collection never expire, regardless of the bucket's max expiry.
history
New value for history preservation for this collection, or null to leave unmodified.
Throws
com. couchbase. client. core. error. Scope Not Found Exception
if the parent scope does not exist.
com. couchbase. client. core. error. Collection Not Found Exception
if the collection does not exist.