|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.concurrent.CountDownLatchWaitToken
public final class CountDownLatchWaitToken
Publishable (immutable) wait token for a CountDownLatch.
| Constructor Summary | |
|---|---|
CountDownLatchWaitToken(CountDownLatch latch)
Creates a new wait token for the given CountDownLatch. |
|
| Method Summary | |
|---|---|
void |
await()
Blocks the calling thread until the state becomes finished. |
void |
await(long timeout,
TimeUnit unit)
Blocks the calling thread until the state becomes finished or the timeout elapses. |
boolean |
isFinished()
Checks if the state is already finished. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountDownLatchWaitToken(CountDownLatch latch)
latch - the latch
NullPointerException - if argument is null| Method Detail |
|---|
public void await()
IWaitToken
await in interface IWaitToken
public void await(long timeout,
TimeUnit unit)
throws TimeoutException
IWaitToken
await in interface IWaitTokentimeout - The timeout.unit - The unit of the timeout.
TimeoutException - the wait timed outpublic boolean isFinished()
IWaitToken
isFinished in interface IWaitToken
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||