public class ConfluenceListenerHandlersConfiguration extends Object implements com.atlassian.event.config.ListenerHandlersConfiguration
Currently supports EventListener
annotated methods, PluginEventListener
annotated methods, and
classes that implement the legacy EventListener
interface. Also configures timing code for listeners that run
too long.
Modifier and Type | Field and 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 and Description |
---|
ConfluenceListenerHandlersConfiguration(ApplicationStatusService applicationStatusService) |
Modifier and Type | Method and Description |
---|---|
List<com.atlassian.event.spi.ListenerHandler> |
getListenerHandlers() |
public static final String EVENT_LISTENER_WARN_THRESHOLD_SYSTEM_PROPERTY
Set to <= 0 to disable this logging completely.
public static final org.joda.time.Duration EVENT_LISTENER_WARN_THRESHOLD_DEFAULT
public ConfluenceListenerHandlersConfiguration(ApplicationStatusService applicationStatusService)
public List<com.atlassian.event.spi.ListenerHandler> getListenerHandlers()
getListenerHandlers
in interface com.atlassian.event.config.ListenerHandlersConfiguration
Copyright © 2003–2019 Atlassian. All rights reserved.