public class SynchronousQueuedExecutorService extends AbstractExecutorService
ExecutorService that enqueues all commmands.
The commands are performed synchronously upon calling "drain".
| Constructor and Description |
|---|
SynchronousQueuedExecutorService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
drain() |
void |
execute(Runnable command) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
List |
shutdownNow() |
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic void drain()
public void execute(Runnable command)
public boolean isShutdown()
public boolean isTerminated()
public void shutdown()
public List shutdownNow()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.