| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private | ContextAwareScheduledThreadPoolExecutor(int corePoolSize, List<ContextPropagator<T>> contextPropagators)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| private Map | |
| public static ContextAwareScheduledThreadPoolExecutor. | |
| public ScheduledFuture | schedule(Runnable
the task to execute command, long the time from now to delay execution delay, TimeUnit the time unit of the delay parameter unit)Overrides java. Implements java. Submits a one-shot task that becomes enabled after the given delay. |
| public <V> ScheduledFuture | schedule(Callable<V>
the function to execute callable, long the time from now to delay execution delay, TimeUnit the time unit of the delay parameter unit)Overrides java. Implements java. Submits a value-returning one-shot task that becomes enabled after the given delay. |
| public ScheduledFuture | scheduleAtFixedRate(Runnable
the task to execute command, long the time to delay first execution initialDelay, long the period between successive executions period, TimeUnit the time unit of the initialDelay and period parameters unit)Overrides java. Implements java. Submits a periodic action that becomes enabled first after the
given initial delay, and subsequently with the given period;
that is, executions will commence after
|
| public ScheduledFuture | scheduleWithFixedDelay(Runnable
the task to execute command, long the time to delay first execution initialDelay, long the delay between the termination of one
execution and the commencement of the next delay, TimeUnit the time unit of the initialDelay and delay parameters unit)Overrides java. Implements java. Submits a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next. |
| private void |
| contextPropagators | back to summary |
|---|---|
| private final List<ContextPropagator<T>> contextPropagators | |
| THREAD_PREFIX | back to summary |
|---|---|
| private static final String THREAD_PREFIX | |
| ContextAwareScheduledThreadPoolExecutor | back to summary |
|---|---|
| private ContextAwareScheduledThreadPoolExecutor(int corePoolSize, List<ContextPropagator<T>> contextPropagators) | |
| getContextPropagators | back to summary |
|---|---|
| public List | |
| getMdcContextMap | back to summary |
|---|---|
| private Map | |
| newScheduledThreadPool | back to summary |
|---|---|
| public static ContextAwareScheduledThreadPoolExecutor. | |
| schedule | back to summary |
|---|---|
| public ScheduledFuture Overrides java. Implements java. Doc from java. Submits a one-shot task that becomes enabled after the given delay.
| |
| schedule | back to summary |
|---|---|
| public <V> ScheduledFuture Overrides java. Implements java. Doc from java. Submits a value-returning one-shot task that becomes enabled after the given delay.
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public ScheduledFuture Overrides java. Implements java. Doc from java. Submits a periodic action that becomes enabled first after the
given initial delay, and subsequently with the given period;
that is, executions will commence after
The sequence of task executions continues indefinitely until one of the following exceptional completions occur:
isDone() on the returned future will
return true.
If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public ScheduledFuture Overrides java. Implements java. Doc from java. Submits a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next. The sequence of task executions continues indefinitely until one of the following exceptional completions occur:
isDone() on the returned future will
return true.
| |
| setMDCContext | back to summary |
|---|---|
| private void setMDCContext(Map<String, String> contextMap) | |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ContextAwareScheduledThreadPoolExecutor | |
| public ContextAwareScheduledThreadPoolExecutor. | |
| public ContextAwareScheduledThreadPoolExecutor. |
| contextPropagators | back to summary |
|---|---|
| private List<ContextPropagator<T>> contextPropagators | |
| corePoolSize | back to summary |
|---|---|
| private int corePoolSize | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public ContextAwareScheduledThreadPoolExecutor build() | |
| contextPropagators | back to summary |
|---|---|
| public ContextAwareScheduledThreadPoolExecutor. | |
| corePoolSize | back to summary |
|---|---|
| public ContextAwareScheduledThreadPoolExecutor. | |