Package de.intarsys.tools.concurrent
Class SynchronousQueuedExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
de.intarsys.tools.concurrent.SynchronousQueuedExecutorService
- All Implemented Interfaces:
AutoCloseable,Executor,ExecutorService
A simple ExecutorService running all commands synchronously.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) voiddrain()voidbooleanbooleanvoidshutdown()Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
close
-
Constructor Details
-
SynchronousQueuedExecutorService
public SynchronousQueuedExecutorService()
-
-
Method Details
-
awaitTermination
- Throws:
InterruptedException
-
drain
public void drain() -
execute
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdown
public void shutdown() -
shutdownNow
-