-
- All Implemented Interfaces:
-
java.util.concurrent.Executor,java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService
public final class ContextAwareScheduledThreadPoolExecutor extends ScheduledThreadPoolExecutor
A SpanContext aware drop-in replacement for ScheduledThreadPoolExecutor. Sets the current SpanContext within a task to the SpanContext that was active when the task was scheduled.
-
-
Constructor Summary
Constructors Constructor Description ContextAwareScheduledThreadPoolExecutor(Integer corePoolSize)ContextAwareScheduledThreadPoolExecutor(Integer corePoolSize, ThreadFactory threadFactory)ContextAwareScheduledThreadPoolExecutor(Integer corePoolSize, RejectedExecutionHandler handler)ContextAwareScheduledThreadPoolExecutor(Integer corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler)
-
Method Summary
Modifier and Type Method Description ScheduledFuture<?>schedule(Runnable command, Long delay, TimeUnit unit)<V extends Any> ScheduledFuture<V>schedule(Callable<V> callable, Long delay, TimeUnit unit)ScheduledFuture<?>scheduleWithFixedDelay(Runnable command, Long initialDelay, Long delay, TimeUnit unit)ScheduledFuture<?>scheduleAtFixedRate(Runnable command, Long initialDelay, Long period, TimeUnit unit)-
Methods inherited from class java.util.concurrent.ScheduledThreadPoolExecutor
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toString -
Methods inherited from class com.bugsnag.android.performance.ContextAwareScheduledThreadPoolExecutor
decorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submit -
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ContextAwareScheduledThreadPoolExecutor
ContextAwareScheduledThreadPoolExecutor(Integer corePoolSize)
-
ContextAwareScheduledThreadPoolExecutor
ContextAwareScheduledThreadPoolExecutor(Integer corePoolSize, ThreadFactory threadFactory)
-
ContextAwareScheduledThreadPoolExecutor
ContextAwareScheduledThreadPoolExecutor(Integer corePoolSize, RejectedExecutionHandler handler)
-
ContextAwareScheduledThreadPoolExecutor
ContextAwareScheduledThreadPoolExecutor(Integer corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler)
-
-
Method Detail
-
schedule
ScheduledFuture<?> schedule(Runnable command, Long delay, TimeUnit unit)
-
schedule
<V extends Any> ScheduledFuture<V> schedule(Callable<V> callable, Long delay, TimeUnit unit)
-
scheduleWithFixedDelay
ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, Long initialDelay, Long delay, TimeUnit unit)
-
scheduleAtFixedRate
ScheduledFuture<?> scheduleAtFixedRate(Runnable command, Long initialDelay, Long period, TimeUnit unit)
-
-
-
-