Class AbortableCountDownLatch
java.lang.Object
java.util.concurrent.CountDownLatch
net.playavalon.mythicdungeons.utility.AbortableCountDownLatch
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.concurrent.CountDownLatch
countDown, getCount, toString
-
Constructor Details
-
AbortableCountDownLatch
public AbortableCountDownLatch(int count)
-
-
Method Details
-
abort
public void abort()Unblocks all threads waiting on this latch and cause them to receive an AbortedException. If the latch has already counted all the way down, this method does nothing. -
await
- Overrides:
await
in classCountDownLatch
- Throws:
InterruptedException
-
await
- Overrides:
await
in classCountDownLatch
- Throws:
InterruptedException
-