Package io.dropwizard.lifecycle
Class ExecutorServiceManager
java.lang.Object
io.dropwizard.lifecycle.ExecutorServiceManager
- All Implemented Interfaces:
Managed
-
Constructor Summary
ConstructorsConstructorDescriptionExecutorServiceManager(ExecutorService executor, io.dropwizard.util.Duration shutdownPeriod, String poolName) -
Method Summary
-
Constructor Details
-
ExecutorServiceManager
public ExecutorServiceManager(ExecutorService executor, io.dropwizard.util.Duration shutdownPeriod, String poolName)
-
-
Method Details
-
stop
Stops the object. Called after the application is no longer accepting requests. The default implementation is a no-op- Specified by:
stopin 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
public io.dropwizard.util.Duration getShutdownPeriod() -
getPoolName
-