getAndLock

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

Throws

DocumentNotFoundException

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