Package org.apache.solr.servlet
Class QueryRateLimiter
- java.lang.Object
-
- org.apache.solr.servlet.RequestRateLimiter
-
- org.apache.solr.servlet.QueryRateLimiter
-
public class QueryRateLimiter extends RequestRateLimiter
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
Constructors Constructor Description QueryRateLimiter(org.apache.solr.common.cloud.SolrZkClient solrZkClient)
QueryRateLimiter(RateLimiterConfig config)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RateLimiterConfig
processConfigChange(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 Detail
-
QueryRateLimiter
public QueryRateLimiter(org.apache.solr.common.cloud.SolrZkClient solrZkClient)
-
QueryRateLimiter
public QueryRateLimiter(RateLimiterConfig config)
-
-
Method Detail
-
processConfigChange
public static RateLimiterConfig processConfigChange(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType, RateLimiterConfig rateLimiterConfig, Map<String,Object> properties) throws IOException
- Throws:
IOException
-
-