Package com.atlassian.confluence.event
Class ConfluenceListenerHandlersConfiguration
- java.lang.Object
-
- com.atlassian.confluence.event.ConfluenceListenerHandlersConfiguration
-
- All Implemented Interfaces:
com.atlassian.event.config.ListenerHandlersConfiguration
public class ConfluenceListenerHandlersConfiguration extends Object implements com.atlassian.event.config.ListenerHandlersConfiguration
Configures which kinds of listeners Confluence supports.Currently supports
EventListener
annotated methods,PluginEventListener
annotated methods, and classes that implement the legacyEventListener
interface. Also configures timing code for listeners that run too long.
-
-
Field Summary
Fields Modifier and Type Field Description static org.joda.time.Duration
EVENT_LISTENER_WARN_THRESHOLD_DEFAULT
Default for the maximum time for a listener to complete before logging warnings.static String
EVENT_LISTENER_WARN_THRESHOLD_SYSTEM_PROPERTY
System property to configure the maximum time for a listener to complete before logging warnings.
-
Constructor Summary
Constructors Constructor Description ConfluenceListenerHandlersConfiguration(ApplicationStatusService applicationStatusService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.atlassian.event.spi.ListenerHandler>
getListenerHandlers()
-
-
-
Field Detail
-
EVENT_LISTENER_WARN_THRESHOLD_SYSTEM_PROPERTY
public static final String EVENT_LISTENER_WARN_THRESHOLD_SYSTEM_PROPERTY
System property to configure the maximum time for a listener to complete before logging warnings.Set to <= 0 to disable this logging completely.
-
EVENT_LISTENER_WARN_THRESHOLD_DEFAULT
public static final org.joda.time.Duration EVENT_LISTENER_WARN_THRESHOLD_DEFAULT
Default for the maximum time for a listener to complete before logging warnings. Disabled by default.
-
-
Constructor Detail
-
ConfluenceListenerHandlersConfiguration
public ConfluenceListenerHandlersConfiguration(ApplicationStatusService applicationStatusService)
-
-
Method Detail
-
getListenerHandlers
public List<com.atlassian.event.spi.ListenerHandler> getListenerHandlers()
- Specified by:
getListenerHandlers
in interfacecom.atlassian.event.config.ListenerHandlersConfiguration
-
-