Interface AtlassianInstrumentationControl
-
@Internal @ParametersAreNonnullByDefault public interface AtlassianInstrumentationControl
Provides operations to allow Confluence's uses of the atlassian-instrumentation library to be manipulated from plugins.since 5.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
resetOpTimerFactorySupplier()
Resets the supplier ofOpTimerFactory
instances used by the monitoring implementation back to the default.void
setOpTimerFactorySupplier(Supplier<com.atlassian.instrumentation.operations.OpTimerFactory> opTimerFactorySupplier)
Provide a new supplier ofOpTimerFactory
instances to be used by the monitoring implementation.
-
-
-
Method Detail
-
setOpTimerFactorySupplier
void setOpTimerFactorySupplier(Supplier<com.atlassian.instrumentation.operations.OpTimerFactory> opTimerFactorySupplier)
Provide a new supplier ofOpTimerFactory
instances to be used by the monitoring implementation. Callers should ensure that monitoring is currently disabled before calling this, or the operation will fail.- Parameters:
opTimerFactorySupplier
- a supplier of OpTimerFactory instances to be used- Throws:
IllegalStateException
- if monitoring wasn't disabled when the call was made- See Also:
ConfluenceMonitoringControl.enableMonitoring()
,ConfluenceMonitoringControl.disableMonitoring()
,ConfluenceMonitoringControl.isMonitoringEnabled()
-
resetOpTimerFactorySupplier
void resetOpTimerFactorySupplier()
Resets the supplier ofOpTimerFactory
instances used by the monitoring implementation back to the default. Callers should ensure that monitoring is currently disabled before calling this, or the operation will fail.- Throws:
IllegalStateException
- if monitoring wasn't disabled when the call was made- See Also:
ConfluenceMonitoringControl.enableMonitoring()
,ConfluenceMonitoringControl.disableMonitoring()
,ConfluenceMonitoringControl.isMonitoringEnabled()
-
-