Package com.atlassian.confluence.event
package com.atlassian.confluence.event
-
ClassDescriptionConfluence-specific event dispatcher which preserves thread local state across event dispatch threads, and maintains the VCache request context for the dispatching thread.Configures which kinds of listeners Confluence supports.Deprecated.
EventThreadPoolConfiguration
implementation that creates configuration forThreadPoolExecutor
based on cpus available.Evented<T>An interface indicating that a given action has a related event it wants to be published once the action completes.Collects events fromEvented
actions after they've executed , and publishes them via theEventPublisher
.ThreadPoolExecutor.CallerRunsPolicy
implementation which logs messages if there are no more threads or queue slots available to process all eventsUsed in bootstrap code when we don't want to publish any events.Allows to force the synchronous dispatch of given events.AnEventPublisher
implementation that times how long it takes to publish an event, and logs a warning if the time is above a threshold.Predicate to check if the given object is an instance of one of the given types.
ThreadPoolEventExecutorFactory