com.atlassian.sal.core.executor
Class ThreadLocalDelegateScheduledExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
com.atlassian.sal.core.executor.ThreadLocalDelegateExecutorService
com.atlassian.sal.core.executor.ThreadLocalDelegateScheduledExecutorService
- All Implemented Interfaces:
- Executor, ExecutorService, ScheduledExecutorService
public class ThreadLocalDelegateScheduledExecutorService
- extends ThreadLocalDelegateExecutorService
- implements ScheduledExecutorService
Scheduled 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
|
Method Summary |
|
schedule(Callable<V> callable,
long delay,
TimeUnit unit)
|
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit)
|
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit)
|
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.concurrent.ExecutorService |
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit |
ThreadLocalDelegateScheduledExecutorService
public ThreadLocalDelegateScheduledExecutorService(ThreadLocalContextManager manager,
ScheduledExecutorService delegate)
schedule
public ScheduledFuture<?> schedule(Runnable command,
long delay,
TimeUnit unit)
- Specified by:
schedule in interface ScheduledExecutorService
schedule
public <V> ScheduledFuture<V> schedule(Callable<V> callable,
long delay,
TimeUnit unit)
- Specified by:
schedule in interface ScheduledExecutorService
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit)
- Specified by:
scheduleAtFixedRate in interface ScheduledExecutorService
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit)
- Specified by:
scheduleWithFixedDelay in interface ScheduledExecutorService
Copyright © 2011 Atlassian. All Rights Reserved.