Utility class to properly close any ExecutorService.
It will attempt a graceful close within the provided timeout. If after such any of the contained tasks are not terminated yet, it will force a shutdown and track a warning in the logs.
|Constructor and Description|
will attempt a graceful close in 5 seconds
will attempt a graceful close by the provided time.
public ExecutorCloser(@Nullable ExecutorService executorService)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.