public interface RCountDownLatchAsync extends RObjectAsync
CountDownLatchIt has an advantage over
CountDownLatch-- count can be set via
|Modifier and Type||Method and Description|
Decrements the count of the latch, releasing all waiting threads if the count reaches zero.
Returns the current count.
Sets new count value only if previous count already has reached zero or is not set at all.
If the current count is greater than zero then it is decremented. If the new count is zero then all waiting threads are re-enabled for thread scheduling purposes.
If the current count equals zero then nothing happens.
This method is typically used for debugging and testing purposes.
count- - number of times
countDownmust be invoked before threads can pass through
trueif new count setted
falseif previous count has not reached zero
Copyright © 2014–2016 The Redisson Project. All rights reserved.