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
EventListenerannotated methods,PluginEventListenerannotated methods, and classes that implement the legacyEventListenerinterface. Also configures timing code for listeners that run too long.
-
-
Field Summary
Fields Modifier and Type Field Description static org.joda.time.DurationEVENT_LISTENER_WARN_THRESHOLD_DEFAULTDeprecated, for removal: This API element is subject to removal in a future version.since 8.6static StringEVENT_LISTENER_WARN_THRESHOLD_SYSTEM_PROPERTYSystem 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
@Deprecated(forRemoval=true) public static final org.joda.time.Duration EVENT_LISTENER_WARN_THRESHOLD_DEFAULT
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Default 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:
getListenerHandlersin interfacecom.atlassian.event.config.ListenerHandlersConfiguration
-
-