distributed-lock
distributed-lock copied to clipboard
MongoLocked: Don't retry on "fail to acquire"
Is there a way to set the Lock to not retry ?
I did not test it, I am a bit overwhelmed at the moment, but I think if you set retry period to longer than the timeout period, it should do the trick?
I added a new support to disable retries when it is defined as retry = @Interval("0")