Class RateLimiterConfig


  • public class RateLimiterConfig
    extends Object
    • Field Detail

      • requestType

        public final org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType
      • isEnabled

        public final boolean isEnabled
      • waitForSlotAcquisition

        public final long waitForSlotAcquisition
      • allowedRequests

        public final int allowedRequests
      • isSlotBorrowingEnabled

        public final boolean isSlotBorrowingEnabled
      • guaranteedSlotsThreshold

        public final int guaranteedSlotsThreshold
      • definition

        public final org.apache.solr.client.solrj.request.beans.RateLimiterPayload definition
        We store the config definition in order to determine whether anything has changed that would call for re-initialization.
    • Constructor Detail

      • RateLimiterConfig

        public RateLimiterConfig​(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType)
      • RateLimiterConfig

        public RateLimiterConfig​(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType,
                                 boolean isEnabled,
                                 int guaranteedSlotsThreshold,
                                 long waitForSlotAcquisition,
                                 int allowedRequests,
                                 boolean isSlotBorrowingEnabled)
      • RateLimiterConfig

        public RateLimiterConfig​(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType,
                                 org.apache.solr.client.solrj.request.beans.RateLimiterPayload definition)
    • Method Detail

      • shouldUpdate

        public boolean shouldUpdate​(org.apache.solr.client.solrj.request.beans.RateLimiterPayload definition)