Constructor and Description |
---|
ExecutorUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
shutdown(ExecutorService pExecutorService,
int pTimeout,
org.apache.log4j.Logger pLogger,
Class pClass)
Performs an orderly shutdown of a
pExecutorService |
public static void shutdown(ExecutorService pExecutorService, int pTimeout, org.apache.log4j.Logger pLogger, Class pClass)
pExecutorService
pExecutorService
- the ExecutorService
to shutdownpTimeout
- the number of seconds to wait on running tasks before forcing a shutdownpLogger
- the Logger
to usepClass
- the class invoking this method. The name of the class will be present in all log messages© 1998- 2018 Stibo DX