@FunctionalInterface public interface Joinable
joined to await
its termination.| Modifier and Type | Method and Description |
|---|---|
default void |
join()
Waits for this Joinable to die.
|
void |
join(long millis)
Waits at most
millis milliseconds for this Joinable to
die. |
default void join()
An invocation of this method behaves in exactly the same way as the invocation
join(0)
java.lang.IllegalStateException - if any thread has interrupted the current threadThread.join()void join(long millis)
millis milliseconds for this Joinable to
die. A timeout of 0 means to wait forever.millis - the time to wait in millisecondsjava.lang.IllegalArgumentException - if the value of millis is negativejava.lang.IllegalStateException - if any thread has interrupted the current threadThread.join(long)