public class ExecutorServiceUtils extends Object
Constructor and Description |
---|
ExecutorServiceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
shutdownAndAwaitTermination(ExecutorService executorService)
ShutdownAndAwaitTermination with default timeout.
|
static void |
shutdownAndAwaitTermination(ExecutorService executorService,
long timeoutMillis)
Gracefully shutdown ExecutorService method.
|
public static void shutdownAndAwaitTermination(ExecutorService executorService)
executorService
- public static void shutdownAndAwaitTermination(ExecutorService executorService, long timeoutMillis)
executorService
- timeoutMillis
- Copyright © 2023. All Rights Reserved.