Skip to content

Support locking documents in ReactiveFindByIdOperation #1059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aaronjwhiteside opened this issue Jan 21, 2021 · 1 comment · Fixed by #1655
Closed

Support locking documents in ReactiveFindByIdOperation #1059

aaronjwhiteside opened this issue Jan 21, 2021 · 1 comment · Fixed by #1655
Labels
type: enhancement A general enhancement

Comments

@aaronjwhiteside
Copy link
Contributor

API Idea:

   final MyEntity entity = template.findById(MyEntity.class)
      .lock(Duration.ofSeconds(5))
      .one("abc123");

.lock() should also exist that takes no arguments and uses the default lock duration.

@aaronjwhiteside aaronjwhiteside changed the title Support locking documents in CouchbaseOperations Support locking documents in ReactiveFindByIdOperation and ReactiveFindByQueryOperation Jan 21, 2021
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 21, 2021
@aaronjwhiteside aaronjwhiteside changed the title Support locking documents in ReactiveFindByIdOperation and ReactiveFindByQueryOperation Support locking documents in ReactiveFindByIdOperation Jan 21, 2021
@mikereiche
Copy link
Collaborator

TODO: use getAndLock(id, duration)

@mikereiche mikereiche added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 29, 2021
babltiga added a commit to babltiga/spring-data-couchbase that referenced this issue Jan 27, 2023
@mikereiche mikereiche added this to the 5.0.2 (2022.0.2) milestone Jan 27, 2023
mikereiche pushed a commit that referenced this issue Jan 27, 2023
mikereiche pushed a commit that referenced this issue Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants