public interface ManagedStats extends Closeable
Modifier and Type | Field and Description |
---|---|
static String |
STATS_NAME_REGEX
Regex for allowed return values of
getStatsName() . |
Modifier and Type | Method and Description |
---|---|
default void |
close()
Closes the stats: prints the last time and shuts down the executor thread, if present.
|
String |
getStatsName()
Returns the name of the stats.
|
default Optional<Long> |
getTotalMeasuredOperationsForStatsOverheadInMillis()
Returns the sum of the execution time of all the operations measured by these stats.
|
static final String STATS_NAME_REGEX
getStatsName()
.String getStatsName()
STATS_NAME_REGEX
.[JIRA-STATS] [<stats name>] snapshot stats
default Optional<Long> getTotalMeasuredOperationsForStatsOverheadInMillis()
Optional.empty()
, then no overhead will be calculated.
default void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2002-2022 Atlassian. All Rights Reserved.