Package de.intarsys.tools.concurrent
Class SynchronousExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
de.intarsys.tools.concurrent.SynchronousExecutorService
- All Implemented Interfaces:
Executor
,ExecutorService
A simple ExecutorService running all commands synchronously.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long timeout, TimeUnit unit) void
boolean
boolean
void
shutdown()
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Constructor Details
-
SynchronousExecutorService
public SynchronousExecutorService()
-
-
Method Details
-
awaitTermination
- Throws:
InterruptedException
-
execute
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdown
public void shutdown() -
shutdownNow
-