getAndLock

suspend fun getAndLock(id: String, lockTime: Duration, common: CommonOptions = CommonOptions.Default): GetResult

Throws

com.couchbase.client.core.error.DocumentNotFoundException

if a document with ID id is not found in the collection.