public class TrashRemovalStatisticThreadLocal extends Object
| Constructor and Description |
|---|
TrashRemovalStatisticThreadLocal() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<TrashRemovalStatistic> |
getCurrentStatistic() |
static void |
withStatistic(@Nullable TrashRemovalStatistic stats,
Runnable runnable)
Perform some trash removal actions while recording statistics into a stats holder
|
public static void withStatistic(@Nullable TrashRemovalStatistic stats, Runnable runnable)
stats - an object to hold statistics for current jobrunnable - some actions whose effects will be recordedpublic static Optional<TrashRemovalStatistic> getCurrentStatistic()
Copyright © 2003–2022 Atlassian. All rights reserved.