Class MongoDocumentStoreThrottlingMetricsUpdater

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class MongoDocumentStoreThrottlingMetricsUpdater
    extends java.lang.Object
    implements java.io.Closeable
    Mongo Document Store throttling metric updater. This class fetches and updates the mongo oplog window
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SIZE  
    • Constructor Summary

      Constructors 
      Constructor Description
      MongoDocumentStoreThrottlingMetricsUpdater​(@NotNull com.mongodb.client.MongoDatabase localDb, @NotNull org.apache.jackrabbit.guava.common.util.concurrent.AtomicDouble oplogWindow)  
    • Constructor Detail

      • MongoDocumentStoreThrottlingMetricsUpdater

        public MongoDocumentStoreThrottlingMetricsUpdater​(@NotNull
                                                          @NotNull com.mongodb.client.MongoDatabase localDb,
                                                          @NotNull
                                                          @NotNull org.apache.jackrabbit.guava.common.util.concurrent.AtomicDouble oplogWindow)
    • Method Detail

      • scheduleUpdateMetrics

        public void scheduleUpdateMetrics()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException