public final class MultiShotLatch extends Object
OneShotLatch this will
reset the state once await() returns.
A part of the code that should only run after other code calls await(). The call will
only return once the other part is finished and calls trigger().
| 构造器和说明 |
|---|
MultiShotLatch() |
public void trigger()
await() will now return.public void await()
throws InterruptedException
trigger() is called.public boolean isTriggered()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.