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
Modifier and TypeMethodDescriptionvoidResets the supplier ofOpTimerFactoryinstances used by the monitoring implementation back to the default.voidsetOpTimerFactorySupplier(Supplier<com.atlassian.instrumentation.operations.OpTimerFactory> opTimerFactorySupplier) Provide a new supplier ofOpTimerFactoryinstances to be used by the monitoring implementation.
-
Method Details
-
setOpTimerFactorySupplier
void setOpTimerFactorySupplier(Supplier<com.atlassian.instrumentation.operations.OpTimerFactory> opTimerFactorySupplier) Provide a new supplier ofOpTimerFactoryinstances 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:
-
resetOpTimerFactorySupplier
void resetOpTimerFactorySupplier()Resets the supplier ofOpTimerFactoryinstances 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:
-