Waits for the server to become terminated, giving up if the timeout is reached. Calling this method before start() or shutdown() is permitted and does not change its behavior. @return whether the server is terminated, as would be done by #isTerminated().
(long timeout, TimeUnit unit)
| 168 | * @return whether the server is terminated, as would be done by {@link #isTerminated()}. |
| 169 | */ |
| 170 | public abstract boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException; |
| 171 | |
| 172 | /** |
| 173 | * Waits for the server to become terminated. |
no outgoing calls