public class BooleanSealableLatch extends Object implements SealableLatch
CountDownLatch except that it only requires a single signal to fire. Because a
latch is non-exclusive, it uses the shared acquire and release methods.| Constructor and Description |
|---|
BooleanSealableLatch() |
public void signal()
signal in interface SealableLatchpublic void await()
throws InterruptedException
await in interface SealableLatchInterruptedExceptionpublic void seal()
seal in interface SealableLatchpublic boolean isSealed()
isSealed in interface SealableLatchCopyright © 2018 The International Consortium of Investigative Journalists. All rights reserved.