Package org.apache.solr.core
Class RateLimiterConfig
- java.lang.Object
-
- org.apache.solr.core.RateLimiterConfig
-
public class RateLimiterConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description int
allowedRequests
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.int
guaranteedSlotsThreshold
boolean
isEnabled
boolean
isSlotBorrowingEnabled
org.apache.solr.client.solrj.SolrRequest.SolrRequestType
requestType
static String
RL_CONFIG_KEY
long
waitForSlotAcquisition
-
Constructor Summary
Constructors Constructor Description RateLimiterConfig(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType)
RateLimiterConfig(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType, boolean isEnabled, int guaranteedSlotsThreshold, long waitForSlotAcquisition, int allowedRequests, boolean isSlotBorrowingEnabled)
RateLimiterConfig(org.apache.solr.client.solrj.SolrRequest.SolrRequestType requestType, org.apache.solr.client.solrj.request.beans.RateLimiterPayload definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldUpdate(org.apache.solr.client.solrj.request.beans.RateLimiterPayload definition)
-
-
-
Field Detail
-
RL_CONFIG_KEY
public static final String RL_CONFIG_KEY
- See Also:
- Constant Field Values
-
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)
-
-