Class SynchronousExecutorService

java.lang.Object
java.util.concurrent.AbstractExecutorService
de.intarsys.tools.concurrent.SynchronousExecutorService
All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

public class SynchronousExecutorService extends AbstractExecutorService
A simple ExecutorService running all commands synchronously.
  • Constructor Details

    • SynchronousExecutorService

      public SynchronousExecutorService()
  • Method Details

    • awaitTermination

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

      public void execute(Runnable command)
    • isShutdown

      public boolean isShutdown()
    • isTerminated

      public boolean isTerminated()
    • shutdown

      public void shutdown()
    • shutdownNow

      public List shutdownNow()