public final class OneShotLatch extends Object
Constructor and Description |
---|
OneShotLatch() |
Modifier and Type | Method and Description |
---|---|
void |
await()
Waits until
#trigger()) is called. |
boolean |
isTriggered()
Checks if the latch was triggered.
|
void |
trigger()
Fires the latch.
|
public void trigger()
await()
will now return.public void await() throws InterruptedException
#trigger())
is called. Once trigger()
has been called this
call will always return immediately.InterruptedException
public boolean isTriggered()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.