Class ConfluenceEventDispatcher<C>

java.lang.Object
com.atlassian.event.internal.AsynchronousAbleEventDispatcher
com.atlassian.confluence.event.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 Details

    • 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
  • Method Details

    • getAsynchronousExecutor

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

      public Executor getInternalExecutor()