Class AbstractRateLimiter<C>

All Implemented Interfaces:
EventListener, RateLimiter<C>, Configurable<C>, StatefulConfigurable<C>, org.springframework.context.ApplicationListener<FilterArgsEvent>
Direct Known Subclasses:
Bucket4jRateLimiter, RedisRateLimiter

public abstract class AbstractRateLimiter<C> extends AbstractStatefulConfigurable<C> implements RateLimiter<C>, org.springframework.context.ApplicationListener<FilterArgsEvent>
  • Constructor Details

    • AbstractRateLimiter

      protected AbstractRateLimiter(Class<C> configClass, String configurationPropertyName, @Nullable ConfigurationService configurationService)
  • Method Details

    • getConfigurationPropertyName

      protected String getConfigurationPropertyName()
    • setConfigurationService

      protected void setConfigurationService(ConfigurationService configurationService)
    • onApplicationEvent

      public void onApplicationEvent(FilterArgsEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<C>
    • toString

      public String toString()
      Overrides:
      toString in class AbstractStatefulConfigurable<C>