Class RemoveMetricUpdater
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.util.RemoveMetricUpdater
-
public final class RemoveMetricUpdater extends Object
Base class to update the metrics forDocumentStoreStatsCollector.doneRemove(long, Collection, int)
for underlyingDocumentStore
Users provide instances of
MeterStats
,TimerStats
based on whether throttling is ongoing or not
-
-
Constructor Summary
Constructors Constructor Description RemoveMetricUpdater(MeterStats removeNodes, TimerStats removeNodesTimer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
update(Collection<? extends Document> collection, int removeCount, long timeTakenNanos, BiPredicate<Collection<? extends Document>,Integer> isNodesCollectionUpdated, BiStatsConsumer removeBiStatsConsumer)
-
-
-
Constructor Detail
-
RemoveMetricUpdater
public RemoveMetricUpdater(MeterStats removeNodes, TimerStats removeNodesTimer)
-
-
Method Detail
-
update
public void update(Collection<? extends Document> collection, int removeCount, long timeTakenNanos, BiPredicate<Collection<? extends Document>,Integer> isNodesCollectionUpdated, BiStatsConsumer removeBiStatsConsumer)
-
-