Class ConfluenceEventDispatcher<C>

  • All Implemented Interfaces:
    com.atlassian.event.spi.EventDispatcher

    public class ConfluenceEventDispatcher<C>
    extends com.atlassian.event.internal.AsynchronousAbleEventDispatcher
    Confluence-specific event dispatcher which preserves thread local state across event dispatch threads, and maintains the VCache request context for the dispatching thread.

    Testing visibility is needed for tests which are relying on completion of async events.

    Since:
    5.5
    • Constructor Detail

      • ConfluenceEventDispatcher

        public ConfluenceEventDispatcher​(com.atlassian.event.spi.EventExecutorFactory executorFactory,
                                         com.atlassian.event.internal.AsynchronousEventResolver asynchronousEventResolver,
                                         com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager)
        Since:
        8.0
      • ConfluenceEventDispatcher

        @Deprecated
        public ConfluenceEventDispatcher​(com.atlassian.event.spi.EventExecutorFactory executorFactory,
                                         com.atlassian.event.internal.AsynchronousEventResolver asynchronousEventResolver,
                                         com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager,
                                         VCacheRequestContextOperations ignored)
        Deprecated.
        since 8.0
    • Method Detail

      • getAsynchronousExecutor

        protected Executor getAsynchronousExecutor()
        Overrides:
        getAsynchronousExecutor in class com.atlassian.event.internal.AsynchronousAbleEventDispatcher
      • getInternalExecutor

        public Executor getInternalExecutor()