Class ExecutorServiceManager

  • All Implemented Interfaces:
    Managed

    public class ExecutorServiceManager
    extends Object
    implements Managed
    • Method Detail

      • start

        public void start()
                   throws Exception
        Description copied from interface: Managed
        Starts the object. Called before the application becomes available.
        Specified by:
        start in interface Managed
        Throws:
        Exception - if something goes wrong; this will halt the application startup.
      • stop

        public void stop()
                  throws InterruptedException,
                         Exception
        Stops the object. Called after the application is no longer accepting requests.
        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.
      • getShutdownPeriod

        public Duration getShutdownPeriod()
      • getPoolName

        public String getPoolName()