Interface ConcurrentScannerThrottlingAware

    • Method Detail

      • setDocumentRequestsUpperLimit

        void setDocumentRequestsUpperLimit​(long documentRequestsUpperLimit)
        Sets an upper limit on the number of fetch requests the connector framework implementation will execute in a given time period.
        Parameters:
        documentRequestsUpperLimit - the upper limit for document requests in a time period; set -1 for no limit
      • getDocumentRequestsUpperLimit

        long getDocumentRequestsUpperLimit()
        An upper limit on the number of fetch requests the connector framework implementation will execute in a given time period.
        Returns:
        the upper limit for document requests in a time period; -1 implies no limit
      • setTimePeriodMillis

        default void setTimePeriodMillis​(long timePeriodMillis)
        Sets time period for which to test the upper limit of document requests.
        Parameters:
        timePeriodMillis - the time period in milliseconds
      • getTimePeriodMillis

        default long getTimePeriodMillis()
        Returns the time period for which to test the upper limit of document requests.
        Returns:
        the time period in milliseconds