Package org.apache.solr.core
Class RateLimiterConfig
java.lang.Object
org.apache.solr.core.RateLimiterConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal org.apache.solr.client.solrj.request.beans.RateLimiterPayloadWe store the config definition in order to determine whether anything has changed that would call for re-initialization.final intfinal booleanfinal booleanfinal org.apache.solr.client.solrj.SolrRequest.SolrRequestTypestatic final Stringfinal long -
Constructor Summary
ConstructorsConstructorDescriptionRateLimiterConfig(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
Modifier and TypeMethodDescriptionbooleanshouldUpdate(org.apache.solr.client.solrj.request.beans.RateLimiterPayload definition)
-
Field Details
-
RL_CONFIG_KEY
- See Also:
-
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 definitionWe store the config definition in order to determine whether anything has changed that would call for re-initialization.
-
-
Constructor Details
-
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 Details
-
shouldUpdate
public boolean shouldUpdate(org.apache.solr.client.solrj.request.beans.RateLimiterPayload definition)
-