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, submit
public void execute(Runnable command)
public void shutdown()
public boolean isTerminated()
public boolean isShutdown()
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.