public class ExecutorServiceWrapper extends AbstractExecutorService implements Runnable
| Constructor and Description |
|---|
ExecutorServiceWrapper(ExecutorService delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
execute(Runnable command) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
run() |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
protected void |
triggerExecution() |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic ExecutorServiceWrapper(ExecutorService delegate)
public void shutdown()
shutdown in interface ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServicepublic boolean isShutdown()
isShutdown in interface ExecutorServicepublic boolean isTerminated()
isTerminated in interface ExecutorServicepublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceInterruptedExceptionprotected void triggerExecution()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.