|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWaitToken
Interface providing methods to wait for and query a finished state.
| 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. |
| Method Detail |
|---|
void await()
ThreadInterruptedException - if the thread was interrupted while waiting
void await(long timeout,
TimeUnit unit)
throws TimeoutException
timeout - The timeout.unit - The unit of the timeout.
ThreadInterruptedException - if the thread was interrupted while waiting
TimeoutException - the wait timed outboolean isFinished()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||