Package com.atlassian.bamboo.concurrent
Class CoalescingBlockedCallsReference<T>
java.lang.Object
com.atlassian.bamboo.concurrent.CoalescingBlockedCallsReference<T>
get() on this reference has the following properties:
When a call (call A) to get is made and is in progress, any get() call done while the call A is still pending
will block the new call until call A is finished. After is finished, a get() will be called once and all
threads that used to be blocked will get the same return value from get().
If there's no call in progress, this reference works just like a regular supplier.
-
Method Summary
Modifier and TypeMethodDescriptionget()
static CoalescingBlockedCallsReference<Void>
static <T> CoalescingBlockedCallsReference<T>
-
Method Details
-
get
-
make
-
make
-