Reputation: 9
Make Cache.get(key, mappingFunction) fail all waiting threads too if mappingFunction fails in Caffeine
If 3 threads come in parallel then currently if first get call fail after 1 mins, then second fail after 2 mins, third in 3mins and so on.
I want if first get call fails then all waiting threads on get should also fail.
Upvotes: -1
Views: 134
Reputation: 9
I tried with buildAsync().synchronous() and it worked. Thank you Ben Manes
Upvotes: 1