public class Timer extends Object implements Closeable
OpTimer that may be safely used even if that class is not present in the class loader.
This wrapper implements Closeable
Note to maintainers: extreme care must be taken to ensure that OpTimer not accessed at runtime if it is
not present.
PluginSystemInstrumentation| Modifier and Type | Method and Description |
|---|---|
void |
close()
End the timer, if instrumentation is present and enabled.
|
Optional<com.atlassian.instrumentation.operations.OpTimer> |
getOpTimer()
Retrieve the timer, if instrumentation is present and enabled.
|
public Optional<com.atlassian.instrumentation.operations.OpTimer> getOpTimer()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019 Atlassian. All rights reserved.