Package org.apache.solr.servlet
Class QueryRateLimiter
java.lang.Object
org.apache.solr.servlet.RequestRateLimiter
org.apache.solr.servlet.QueryRateLimiter
Implementation of RequestRateLimiter specific to query request types. Most of the actual work is
delegated to the parent class but specific configurations and parsing are handled by this class.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.servlet.RequestRateLimiter
RequestRateLimiter.SlotReservation -
Field Summary
Fields inherited from class org.apache.solr.servlet.RequestRateLimiter
UNLIMITED -
Constructor Summary
ConstructorsConstructorDescriptionQueryRateLimiter(org.apache.solr.common.cloud.SolrZkClient solrZkClient) QueryRateLimiter(RateLimiterConfig config) -
Method Summary
Modifier and TypeMethodDescriptionstatic RateLimiterConfigprocessConfigChange(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType, RateLimiterConfig rateLimiterConfig, Map<String, Object> properties) Methods inherited from class org.apache.solr.servlet.RequestRateLimiter
allowSlotBorrowing, getRateLimiterConfig, handleRequest
-
Constructor Details
-
QueryRateLimiter
public QueryRateLimiter(org.apache.solr.common.cloud.SolrZkClient solrZkClient) -
QueryRateLimiter
-
-
Method Details
-
processConfigChange
public static RateLimiterConfig processConfigChange(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType, RateLimiterConfig rateLimiterConfig, Map<String, Object> properties) throws IOException- Throws:
IOException
-