Class ExecutorShutdownController

  • All Implemented Interfaces:
    ShutdownController, ShutdownController.Actuator

    public class ExecutorShutdownController
    extends java.lang.Object
    implements ShutdownController, ShutdownController.Actuator
    A shutdown controller that allows to parallelize the shutdown.

    The prepare and perform callbacks are called in parallel, but not overlapping (i.e. peform callbacks will only be called after all prepare callbacks are finished.

    The finalize callback will be called serially the thread initiating the shutdown (finalizing the shutdown usually includes to destroying the work thread pool).