Class DirectExecutorService

java.lang.Object
java.util.concurrent.AbstractExecutorService
io.dropwizard.util.DirectExecutorService
All Implemented Interfaces:
Executor, ExecutorService

public class DirectExecutorService extends AbstractExecutorService
An implementation of an ExecutorService which directly executes a task, if the service has not shut down already.
Since:
2.0
  • Constructor Details

    • DirectExecutorService

      public DirectExecutorService()
  • Method Details

    • execute

      public void execute(Runnable command)
    • isShutdown

      public boolean isShutdown()
    • shutdown

      public void shutdown()
    • shutdownNow

      public List<Runnable> shutdownNow()
    • isTerminated

      public boolean isTerminated()
    • awaitTermination

      public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
      Throws:
      InterruptedException