Class SequentialExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
net.imglib2.parallel.SequentialExecutorService
- All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService
A
ExecutorService that is single-threaded, it never uses threads.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long l, TimeUnit timeUnit) voidintbooleanbooleanvoidshutdown()Methods inherited from class AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExecutorService
close
-
Constructor Details
-
SequentialExecutorService
public SequentialExecutorService()
-
-
Method Details
-
getParallelism
public int getParallelism() -
shutdown
public void shutdown() -
shutdownNow
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
awaitTermination
- Throws:
InterruptedException
-
execute
-