| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
shutdownGracefully()
Shortcut method for
shutdownGracefully(long, TimeUnit) with
sensible default values. |
boolean |
shutdownGracefully(long timeout,
TimeUnit unit)
Signals this executor that the caller wants it to be shutdown.
|
boolean shutdownGracefully()
shutdownGracefully(long, TimeUnit) with
sensible default values.boolean shutdownGracefully(long timeout,
TimeUnit unit)
timeout - the maximum amount of time to wait until the executor
is shutdownunit - the unit of timeoutCopyright © 2021. All rights reserved.