Class SequentialExecutorService

java.lang.Object
java.util.concurrent.AbstractExecutorService
net.imglib2.parallel.SequentialExecutorService
All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

public class SequentialExecutorService extends AbstractExecutorService
A ExecutorService that is single-threaded, it never uses threads.
  • Constructor Details

    • SequentialExecutorService

      public SequentialExecutorService()
  • Method Details

    • getParallelism

      public int getParallelism()
    • shutdown

      public void shutdown()
    • shutdownNow

      public List<Runnable> shutdownNow()
    • isShutdown

      public boolean isShutdown()
    • isTerminated

      public boolean isTerminated()
    • awaitTermination

      public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException
      Throws:
      InterruptedException
    • execute

      public void execute(Runnable runnable)