Class MongoDocumentStoreThrottlingFactorUpdater

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class MongoDocumentStoreThrottlingFactorUpdater
    extends Object
    implements Closeable
    Reads throttling values from the MongoDB settings collection.

    This class provides methods to fetch the throttling factor and related settings from the MongoDB database for use in throttling logic.

    • Constructor Detail

      • MongoDocumentStoreThrottlingFactorUpdater

        public MongoDocumentStoreThrottlingFactorUpdater​(@NotNull
                                                         @NotNull com.mongodb.client.MongoDatabase localDb,
                                                         @NotNull
                                                         @NotNull AtomicReference<Integer> factor,
                                                         int period)