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 Summary

    Constructors
    Constructor
    Description
    ConfluenceEventDispatcher(com.atlassian.event.spi.EventExecutorFactory executorFactory, com.atlassian.event.internal.AsynchronousEventResolver asynchronousEventResolver, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager)
     
    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 Summary

    Modifier and Type
    Method
    Description
    protected Executor
     
     

    Methods inherited from class com.atlassian.event.internal.AsynchronousAbleEventDispatcher

    dispatch, executorFor, getSynchronousExecutor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
    • 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 Details

    • getAsynchronousExecutor

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

      public Executor getInternalExecutor()