Package io.dropwizard.lifecycle
Class ExecutorServiceManager
java.lang.Object
io.dropwizard.lifecycle.ExecutorServiceManager
- All Implemented Interfaces:
Managed
-
Constructor Summary
ConstructorsConstructorDescriptionExecutorServiceManager
(ExecutorService executor, Duration shutdownPeriod, String poolName) -
Method Summary
-
Constructor Details
-
ExecutorServiceManager
-
-
Method Details
-
stop
Stops the object. Called after the application is no longer accepting requests. The default implementation is a no-op- Specified by:
stop
in interfaceManaged
- Throws:
InterruptedException
- This is thrown if the thread executing this method is interrupted while awaiting executor tasks to complete.Exception
- if something goes wrong.
-
toString
-
getExecutor
-
getShutdownPeriod
-
getPoolName
-