Package org.infinispan.util.concurrent
Class CountDownRunnable
java.lang.Object
org.infinispan.util.concurrent.CountDownRunnable
A concurrency structure that invokes a
Runnable
when its count reaches zero.
Method increment()
and decrement()
are available to increase or decrease the counter. When freeze()
is invoked, no more increment()
are allowed to be called. It assumes a correct invocation
behavior, i.e. increment()
is invoked before the corresponding decrement()
.
The Runnable
is executed only once.
- Since:
- 14
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CountDownRunnable
-
-
Method Details
-
increment
public void increment() -
decrement
public void decrement() -
missing
public int missing() -
freeze
public void freeze()
-