Class ConfluenceExecutors
java.lang.Object
com.atlassian.confluence.impl.util.concurrent.ConfluenceExecutors
Deprecated.
since 5.10. Code should be delegating to a product-managed executor service instead.
A set of utility methods for creating concurrent executors. This should be used in preference to the standard
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.
- Since:
- 5.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TaskWrapperDeprecated.static final TaskWrapperDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorServicenewFixedThreadPool(int numberOfThreads, ThreadFactory threadFactory) Deprecated.static ScheduledExecutorServicenewScheduledThreadPool(int threadPoolSize, ThreadFactory threadFactory) Deprecated.static ExecutorServicenewSingleThreadExecutor(ThreadFactory threadFactory) Deprecated.static ExecutorServicewrap(ExecutorService delegate) Deprecated.static ExecutorServicewrap(ExecutorService delegate, TaskWrapper... taskWrappers) Deprecated.static ScheduledExecutorServicewrap(ScheduledExecutorService delegate) Deprecated.
-
Field Details
-
VCACHE_TASK_WRAPPER
Deprecated. -
THREAD_LOCAL_CONTEXT_TASK_WRAPPER
Deprecated.
-
-
Constructor Details
-
ConfluenceExecutors
public ConfluenceExecutors()Deprecated.
-
-
Method Details
-
newFixedThreadPool
Deprecated. -
newScheduledThreadPool
public static ScheduledExecutorService newScheduledThreadPool(int threadPoolSize, ThreadFactory threadFactory) Deprecated. -
newSingleThreadExecutor
Deprecated. -
wrap
Deprecated. -
wrap
Deprecated. -
wrap
Deprecated.
-