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, submit
public ExecutorServiceWrapper(ExecutorService delegate)
public void shutdown()
shutdown
in interface ExecutorService
public List<Runnable> shutdownNow()
shutdownNow
in interface ExecutorService
public boolean isShutdown()
isShutdown
in interface ExecutorService
public boolean isTerminated()
isTerminated
in interface ExecutorService
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
awaitTermination
in interface ExecutorService
InterruptedException
protected void triggerExecution()
Copyright © 2016. All rights reserved.