Class RemoveMetricUpdater
java.lang.Object
org.apache.jackrabbit.oak.plugins.document.util.RemoveMetricUpdater
Base class to update the metrics for
DocumentStoreStatsCollector.doneRemove(long, Collection, int)
for underlying DocumentStore
Users provide instances of MeterStats
, TimerStats
based on whether throttling is ongoing or not
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(Collection<? extends Document> collection, int removeCount, long timeTakenNanos, BiPredicate<Collection<? extends Document>, Integer> isNodesCollectionUpdated, BiStatsConsumer removeBiStatsConsumer)
-
Constructor Details
-
RemoveMetricUpdater
-
-
Method Details
-
update
public void update(Collection<? extends Document> collection, int removeCount, long timeTakenNanos, BiPredicate<Collection<? extends Document>, Integer> isNodesCollectionUpdated, BiStatsConsumer removeBiStatsConsumer)
-