Class 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 Detail

      • IpdExecutors

        public IpdExecutors​(com.atlassian.event.api.EventPublisher eventPublisher)
    • 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.