Class UpsertMetricUpdater
java.lang.Object
org.apache.jackrabbit.oak.plugins.document.util.UpsertMetricUpdater
Base class to update the metrics for
DocumentStoreStatsCollector.doneCreateOrUpdate(long, Collection, List)
for underlying DocumentStore
Users provide instances of MeterStats
, TimerStats
based on whether throttling is ongoing or not
-
Constructor Summary
ConstructorsConstructorDescriptionUpsertMetricUpdater
(MeterStats createNodeUpsertMeter, MeterStats createSplitNodeMeter, TimerStats createNodeUpsertTimer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(Collection<? extends Document> collection, long timeTakenNanos, List<String> ids, BiPredicate<Collection<? extends Document>, Integer> isNodesCollectionUpdated, TriStatsConsumer upsertStatsConsumer)
-
Constructor Details
-
UpsertMetricUpdater
public UpsertMetricUpdater(MeterStats createNodeUpsertMeter, MeterStats createSplitNodeMeter, TimerStats createNodeUpsertTimer)
-
-
Method Details
-
update
public void update(Collection<? extends Document> collection, long timeTakenNanos, List<String> ids, BiPredicate<Collection<? extends Document>, Integer> isNodesCollectionUpdated, TriStatsConsumer upsertStatsConsumer)
-