Class UpsertMetricUpdater
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.util.UpsertMetricUpdater
-
public final class UpsertMetricUpdater extends Object
Base class to update the metrics forDocumentStoreStatsCollector.doneCreateOrUpdate(long, Collection, List)
for underlyingDocumentStore
Users provide instances of
MeterStats
,TimerStats
based on whether throttling is ongoing or not
-
-
Constructor Summary
Constructors Constructor Description UpsertMetricUpdater(MeterStats createNodeUpsertMeter, MeterStats createSplitNodeMeter, TimerStats createNodeUpsertTimer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
update(Collection<? extends Document> collection, long timeTakenNanos, List<String> ids, BiPredicate<Collection<? extends Document>,Integer> isNodesCollectionUpdated, TriStatsConsumer upsertStatsConsumer)
-
-
-
Constructor Detail
-
UpsertMetricUpdater
public UpsertMetricUpdater(MeterStats createNodeUpsertMeter, MeterStats createSplitNodeMeter, TimerStats createNodeUpsertTimer)
-
-
Method Detail
-
update
public void update(Collection<? extends Document> collection, long timeTakenNanos, List<String> ids, BiPredicate<Collection<? extends Document>,Integer> isNodesCollectionUpdated, TriStatsConsumer upsertStatsConsumer)
-
-