com.atlassian.sal.core.executor
Class ThreadLocalDelegateExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
com.atlassian.sal.core.executor.ThreadLocalDelegateExecutorService
- All Implemented Interfaces:
- Executor, ExecutorService
- Direct Known Subclasses:
- ThreadLocalDelegateScheduledExecutorService
public class ThreadLocalDelegateExecutorService
- extends AbstractExecutorService
Executor service that wraps executing callables and runnables in a wrapper that transfers the thread local state of
the caller to the thread of the executing task.
- Since:
- 2.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
manager
protected final ThreadLocalContextManager manager
ThreadLocalDelegateExecutorService
public ThreadLocalDelegateExecutorService(ThreadLocalContextManager manager,
ExecutorService delegate)
shutdown
public void shutdown()
shutdownNow
public List<Runnable> shutdownNow()
isShutdown
public boolean isShutdown()
isTerminated
public boolean isTerminated()
awaitTermination
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
execute
public void execute(Runnable command)
Copyright © 2011 Atlassian. All Rights Reserved.