Class RateLimiterConfig

java.lang.Object
org.apache.solr.core.RateLimiterConfig

public class RateLimiterConfig extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
    final org.apache.solr.client.solrj.request.beans.RateLimiterPayload
    We store the config definition in order to determine whether anything has changed that would call for re-initialization.
    final int
     
    final boolean
     
    final boolean
     
    final org.apache.solr.client.solrj.SolrRequest.SolrRequestType
     
    static final String
     
    final long
     
  • 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

    Modifier and Type
    Method
    Description
    boolean
    shouldUpdate(org.apache.solr.client.solrj.request.beans.RateLimiterPayload definition)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RL_CONFIG_KEY

      public static final String 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 definition
      We 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)