distributed-lock
distributed-lock copied to clipboard
About throwing option added in recent PR
I was wondering why line 65 in the code block below is returning null instead of returning the result of the invocation.proceed() call.
https://github.com/alturkovic/distributed-lock/blob/06efe84229b5349c77fd553e3e263014bb5f8765/distributed-lock-core/src/main/java/com/github/alturkovic/lock/advice/LockMethodInterceptor.java#L62-L68
I assumed that the throwing
option was added to call the target method rather than throwing a DistributedLockException
when there's a problem with redis or a network failure, but seeing that it returns null, I'm wondering if my assumption is wrong.