public final class SameThreadExecutorService extends AbstractExecutorService
ExecutorService that executes tasks immediately in the calling thread during submit.| Constructor and Description |
|---|
SameThreadExecutorService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
execute(Runnable command) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic void execute(Runnable command)
public void shutdown()
public boolean isTerminated()
public boolean isShutdown()
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.