Class IpdExecutors
- java.lang.Object
-
- com.atlassian.confluence.internal.diagnostics.ipd.IpdExecutors
-
public class IpdExecutors extends Object
This class is responsible for creating executors used by IPD and closing them on Confluence shutdown.- Since:
- 8.7
-
-
Constructor Summary
Constructors Constructor Description IpdExecutors(com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorService
createSingleTaskExecutorService(String threadName)
ScheduledExecutorService
createSingleThreadScheduledExecutorService(String threadName)
void
onApplicationStopping(com.atlassian.config.lifecycle.events.ApplicationStoppingEvent applicationStoppingEvent)
-
-
-
Method Detail
-
createSingleTaskExecutorService
public ExecutorService createSingleTaskExecutorService(String threadName)
- Returns:
- ExecutorService with a single thread that will reject submitting new task when a task is already being processed.
-
onApplicationStopping
@EventListener public void onApplicationStopping(com.atlassian.config.lifecycle.events.ApplicationStoppingEvent applicationStoppingEvent)
-
createSingleThreadScheduledExecutorService
public ScheduledExecutorService createSingleThreadScheduledExecutorService(String threadName)
- Returns:
- ScheduledExecutorService with a single thread.
-
-