@Internal
@ParametersAreNonnullByDefault
public interface AtlassianInstrumentationControl
since 5.8
Modifier and Type | Method and Description |
---|---|
void |
resetOpTimerFactorySupplier()
Resets the supplier of
OpTimerFactory instances used by the monitoring implementation back to the default. |
void |
setOpTimerFactorySupplier(Supplier<com.atlassian.instrumentation.operations.OpTimerFactory> opTimerFactorySupplier)
Provide a new supplier of
OpTimerFactory instances to be used by the monitoring implementation. |
void setOpTimerFactorySupplier(Supplier<com.atlassian.instrumentation.operations.OpTimerFactory> opTimerFactorySupplier)
OpTimerFactory
instances to be used by the monitoring implementation.
Callers should ensure that monitoring is currently disabled before calling this, or the operation will fail.opTimerFactorySupplier
- a supplier of OpTimerFactory instances to be usedIllegalStateException
- if monitoring wasn't disabled when the call was madeConfluenceMonitoringControl.enableMonitoring()
,
ConfluenceMonitoringControl.disableMonitoring()
,
ConfluenceMonitoringControl.isMonitoringEnabled()
void resetOpTimerFactorySupplier()
OpTimerFactory
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.IllegalStateException
- if monitoring wasn't disabled when the call was madeConfluenceMonitoringControl.enableMonitoring()
,
ConfluenceMonitoringControl.disableMonitoring()
,
ConfluenceMonitoringControl.isMonitoringEnabled()
Copyright © 2003–2020 Atlassian. All rights reserved.