Interface ReactiveFindByIdOperation.FindByIdWithLock<T>
- All Superinterfaces:
InCollection<T>
,InScope<T>
,OneAndAllIdReactive<T>
,ReactiveFindByIdOperation.FindByIdInCollection<T>
,ReactiveFindByIdOperation.FindByIdInScope<T>
,ReactiveFindByIdOperation.FindByIdWithExpiry<T>
,ReactiveFindByIdOperation.FindByIdWithOptions<T>
,ReactiveFindByIdOperation.FindByIdWithProjection<T>
,ReactiveFindByIdOperation.TerminatingFindById<T>
,WithExpiry<T>
,WithGetOptions<T>
,WithLock<T>
,WithProjectionId<T>
- All Known Subinterfaces:
ReactiveFindByIdOperation.ReactiveFindById<T>
- Enclosing interface:
- ReactiveFindByIdOperation
public static interface ReactiveFindByIdOperation.FindByIdWithLock<T>
extends ReactiveFindByIdOperation.FindByIdWithExpiry<T>, WithLock<T>
-
Method Summary
Modifier and TypeMethodDescriptionFetches document and write-locks it for the given duration.Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByIdOperation.FindByIdInCollection
inCollection
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByIdOperation.FindByIdInScope
inScope
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByIdOperation.FindByIdWithExpiry
withExpiry
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByIdOperation.FindByIdWithOptions
withOptions
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByIdOperation.FindByIdWithProjection
project
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByIdOperation.TerminatingFindById
all, one
-
Method Details
-
withLock
Fetches document and write-locks it for the given duration.Note that the client does not enforce an upper limit on the
Duration
lockTime. The maximum lock time by default on the server is 30 seconds. Any value larger than 30 seconds will be capped down by the server to the default lock time, which is 15 seconds unless modified on the server side.
-