Interface ExecutableFindByIdOperation.FindByIdWithLock<T>
- All Superinterfaces:
ExecutableFindByIdOperation.FindByIdInCollection<T>
,ExecutableFindByIdOperation.FindByIdInScope<T>
,ExecutableFindByIdOperation.FindByIdWithExpiry<T>
,ExecutableFindByIdOperation.FindByIdWithOptions<T>
,ExecutableFindByIdOperation.FindByIdWithProjection<T>
,ExecutableFindByIdOperation.TerminatingFindById<T>
,InCollection<T>
,InScope<T>
,OneAndAllId<T>
,WithExpiry<T>
,WithGetOptions<T>
,WithLock<T>
,WithProjectionId<T>
- All Known Subinterfaces:
ExecutableFindByIdOperation.ExecutableFindById<T>
- Enclosing interface:
- ExecutableFindByIdOperation
public static interface ExecutableFindByIdOperation.FindByIdWithLock<T>
extends ExecutableFindByIdOperation.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.ExecutableFindByIdOperation.FindByIdInCollection
inCollection
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByIdOperation.FindByIdInScope
inScope
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByIdOperation.FindByIdWithExpiry
withExpiry
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByIdOperation.FindByIdWithOptions
withOptions
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByIdOperation.FindByIdWithProjection
project
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByIdOperation.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.
-