de.intarsys.tools.concurrent
Class SynchronousQueuedExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
de.intarsys.tools.concurrent.SynchronousQueuedExecutorService
- All Implemented Interfaces:
- Executor, ExecutorService
public class SynchronousQueuedExecutorService
- extends AbstractExecutorService
An ExecutorService that enqueues all commmands.
The commands are performed synchronously upon calling "drain".
SynchronousQueuedExecutorService
public SynchronousQueuedExecutorService()
awaitTermination
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
drain
public void drain()
execute
public void execute(Runnable command)
isShutdown
public boolean isShutdown()
isTerminated
public boolean isTerminated()
shutdown
public void shutdown()
shutdownNow
public List shutdownNow()
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.