public static interface ZStar.Exit
Modifier and Type | Method and Description |
---|---|
void |
await()
Causes the current thread to wait in blocking mode until the end of the remote operations,
unless the thread is interrupted.
|
boolean |
await(long timeout,
TimeUnit unit)
Causes the current thread to wait in blocking mode until the end of the remote operations,
unless the thread is interrupted, or the specified waiting time elapses.
|
boolean |
isExited()
Checks in non-blocking mode, if the remote operations have ended.
|
void await() throws InterruptedException
If the current thread:
InterruptedException
is thrown and the current thread's
interrupted status is cleared.InterruptedException
- if the current thread is interrupted
while waitingboolean await(long timeout, TimeUnit unit) throws InterruptedException
If the current thread:
InterruptedException
is thrown and the current thread's
interrupted status is cleared.
If the specified waiting time elapses then the value false
is returned. If the time is less than or equal to zero, the method
will not wait at all.
timeout
- the maximum time to waitunit
- the time unit of the timeout
argumenttrue
if the remote operations ended and false
if the waiting time elapsed before the remote operations endedInterruptedException
- if the current thread is interrupted
while waitingboolean isExited()
Copyright © 2022. All rights reserved.