@Deprecated public class ConfluenceExecutors extends Object
Executors
factory class. Executors created via this class will automatically wrap the tasks in a VCache
request context.
Note that this class is immediately deprecated. Application code should not be creating its own executors, but should be having them injected in from outside.
This class will likely be removed as part of the Vertigo work, since application-managed thread pools will be banned.
Modifier and Type | Field and Description |
---|---|
static TaskWrapper |
THREAD_LOCAL_CONTEXT_TASK_WRAPPER
Deprecated.
|
static TaskWrapper |
VCACHE_TASK_WRAPPER
Deprecated.
|
Constructor and Description |
---|
ConfluenceExecutors()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ExecutorService |
newFixedThreadPool(int numberOfThreads,
ThreadFactory threadFactory)
Deprecated.
|
static ScheduledExecutorService |
newScheduledThreadPool(int threadPoolSize,
ThreadFactory threadFactory)
Deprecated.
|
static ExecutorService |
newSingleThreadExecutor(ThreadFactory threadFactory)
Deprecated.
|
static ExecutorService |
wrap(ExecutorService delegate)
Deprecated.
|
static ExecutorService |
wrap(ExecutorService delegate,
TaskWrapper... taskWrappers)
Deprecated.
|
static ScheduledExecutorService |
wrap(ScheduledExecutorService delegate)
Deprecated.
|
public static final TaskWrapper VCACHE_TASK_WRAPPER
public static final TaskWrapper THREAD_LOCAL_CONTEXT_TASK_WRAPPER
public static ExecutorService newFixedThreadPool(int numberOfThreads, ThreadFactory threadFactory)
public static ScheduledExecutorService newScheduledThreadPool(int threadPoolSize, ThreadFactory threadFactory)
public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory)
public static ScheduledExecutorService wrap(ScheduledExecutorService delegate)
public static ExecutorService wrap(ExecutorService delegate)
public static ExecutorService wrap(ExecutorService delegate, TaskWrapper... taskWrappers)
Copyright © 2003–2019 Atlassian. All rights reserved.