Class ThrottlingStatsCollectorImpl

    • Constructor Detail

      • ThrottlingStatsCollectorImpl

        public ThrottlingStatsCollectorImpl​(StatisticsProvider provider)
    • Method Detail

      • doneCreate

        public void doneCreate​(long throttlingTimeNanos,
                               Collection<? extends Document> collection,
                               List<String> ids,
                               boolean insertSuccess)
        Description copied from interface: ThrottlingStatsCollector
        Called when a document is created in the given collection
        Specified by:
        doneCreate in interface ThrottlingStatsCollector
        Parameters:
        throttlingTimeNanos - time taken
        collection - the collection
        ids - list of ids request to be created
        insertSuccess - true if the insert was successful
      • doneFindAndModify

        public void doneFindAndModify​(long throttlingTimeNanos,
                                      Collection<? extends Document> collection,
                                      String key,
                                      boolean newEntry,
                                      boolean success,
                                      int retryCount)
        Description copied from interface: ThrottlingStatsCollector
        Called when a update operation was completed which affected single document.
        Specified by:
        doneFindAndModify in interface ThrottlingStatsCollector
        Parameters:
        throttlingTimeNanos - time taken
        collection - the collection
        key - collection which got updated or inserted
        newEntry - true if the document was newly created due to given operation
        success - true if the update was success
        retryCount - number of retries done to get the update
      • doneFindAndModify

        public void doneFindAndModify​(long throttlingTimeNanos,
                                      Collection<? extends Document> collection,
                                      List<String> ids,
                                      boolean success,
                                      int retryCount)
        Description copied from interface: ThrottlingStatsCollector
        Called when a update operation was completed which could have affected multiple documents.
        Specified by:
        doneFindAndModify in interface ThrottlingStatsCollector
        Parameters:
        throttlingTimeNanos - time taken
        collection - the collection
        ids - List of document ids which got updated
        success - true if the update was success
        retryCount - number of retries done to get the update