Class MongoDocumentStoreThrottlingMetricsUpdater
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStoreThrottlingMetricsUpdater
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class MongoDocumentStoreThrottlingMetricsUpdater extends Object implements Closeable
Mongo Document Store throttling metric updater. This class fetches and updates the mongo oplog window
-
-
Constructor Summary
Constructors Constructor Description MongoDocumentStoreThrottlingMetricsUpdater(@NotNull com.mongodb.client.MongoDatabase localDb, @NotNull AtomicReference<Double> oplogWindow)
-
-
-
Field Detail
-
SIZE
public static final String SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MongoDocumentStoreThrottlingMetricsUpdater
public MongoDocumentStoreThrottlingMetricsUpdater(@NotNull @NotNull com.mongodb.client.MongoDatabase localDb, @NotNull @NotNull AtomicReference<Double> oplogWindow)
-
-
Method Detail
-
scheduleUpdateMetrics
public void scheduleUpdateMetrics()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-