Class TrashRemovalStatisticThreadLocal
java.lang.Object
com.atlassian.confluence.impl.retention.analytics.TrashRemovalStatisticThreadLocal
Hold statistics for a running trash removal job
- Since:
- 7.14.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<TrashRemovalStatistic>
static void
withStatistic
(@Nullable TrashRemovalStatistic stats, Runnable runnable) Perform some trash removal actions while recording statistics into a stats holder
-
Constructor Details
-
TrashRemovalStatisticThreadLocal
public TrashRemovalStatisticThreadLocal()
-
-
Method Details
-
withStatistic
Perform some trash removal actions while recording statistics into a stats holder- Parameters:
stats
- an object to hold statistics for current jobrunnable
- some actions whose effects will be recorded
-
getCurrentStatistic
- Returns:
- statistics holder for current trash removal job, if any
-