Skip to content
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

Trigger exeption if is locked ?! #1556

Closed
ricardojlrufino opened this issue Oct 5, 2023 · 4 comments
Closed

Trigger exeption if is locked ?! #1556

ricardojlrufino opened this issue Oct 5, 2023 · 4 comments

Comments

@ricardojlrufino
Copy link

Is it possible to configure to throw an exception if is locked?

@ricardojlrufino
Copy link
Author

ricardojlrufino commented Oct 6, 2023

I implemented in this commit 33fe767
But it was specific to quarkus/redis

Explaining, I need to detect whether the lock exists or not, to perform another action. One of the ways I found it would be to throw an exception if it is locked.

@lukas-krecan
Copy link
Owner

@ricardojlrufino
Copy link
Author

I think it would be nice to update this example, with this exception case to make it clearer, mainly because it is a little counterintuitive, because it uses inverted logic.

@ricardojlrufino
Copy link
Author

about the pull request, I would just like you to see the latest comments.
#1553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants