Class ConfluenceExecutors
- java.lang.Object
-
- com.atlassian.confluence.impl.util.concurrent.ConfluenceExecutors
-
@Deprecated public class ConfluenceExecutors extends Object
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 standardExecutors
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
Fields Modifier and Type Field Description static TaskWrapper
THREAD_LOCAL_CONTEXT_TASK_WRAPPER
Deprecated.static TaskWrapper
VCACHE_TASK_WRAPPER
Deprecated.
-
Constructor Summary
Constructors Constructor Description ConfluenceExecutors()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
VCACHE_TASK_WRAPPER
public static final TaskWrapper VCACHE_TASK_WRAPPER
Deprecated.
-
THREAD_LOCAL_CONTEXT_TASK_WRAPPER
public static final TaskWrapper THREAD_LOCAL_CONTEXT_TASK_WRAPPER
Deprecated.
-
-
Method Detail
-
newFixedThreadPool
public static ExecutorService newFixedThreadPool(int numberOfThreads, ThreadFactory threadFactory)
Deprecated.
-
newScheduledThreadPool
public static ScheduledExecutorService newScheduledThreadPool(int threadPoolSize, ThreadFactory threadFactory)
Deprecated.
-
newSingleThreadExecutor
public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory)
Deprecated.
-
wrap
public static ScheduledExecutorService wrap(ScheduledExecutorService delegate)
Deprecated.
-
wrap
public static ExecutorService wrap(ExecutorService delegate)
Deprecated.
-
wrap
public static ExecutorService wrap(ExecutorService delegate, TaskWrapper... taskWrappers)
Deprecated.
-
-