Class ExecutorServiceManager

java.lang.Object
io.dropwizard.lifecycle.ExecutorServiceManager
All Implemented Interfaces:
Managed

public class ExecutorServiceManager extends Object implements Managed
  • Constructor Details

  • Method Details

    • stop

      public void stop() throws InterruptedException, Exception
      Stops the object. Called after the application is no longer accepting requests. The default implementation is a no-op
      Specified by:
      stop in interface Managed
      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

      public String toString()
      Overrides:
      toString in class Object
    • getExecutor

      public ExecutorService getExecutor()
    • getShutdownPeriod

      public Duration getShutdownPeriod()
    • getPoolName

      public String getPoolName()