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 org.apache.jackrabbit.guava.common.util.concurrent.AtomicDouble oplogWindow)
-
-
-
Field Detail
-
SIZE
public static final String SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
scheduleUpdateMetrics
public void scheduleUpdateMetrics()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-