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 TaskWrapper
Deprecated.static final TaskWrapper
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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.
-