Class AbstractRateLimiter<C>
- java.lang.Object
-
- org.springframework.cloud.gateway.support.AbstractConfigurable<C>
-
- org.springframework.cloud.gateway.support.AbstractStatefulConfigurable<C>
-
- org.springframework.cloud.gateway.filter.ratelimit.AbstractRateLimiter<C>
-
- All Implemented Interfaces:
EventListener,RateLimiter<C>,Configurable<C>,StatefulConfigurable<C>,org.springframework.context.ApplicationListener<FilterArgsEvent>
- Direct Known Subclasses:
RedisRateLimiter
public abstract class AbstractRateLimiter<C> extends AbstractStatefulConfigurable<C> implements RateLimiter<C>, org.springframework.context.ApplicationListener<FilterArgsEvent>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.cloud.gateway.filter.ratelimit.RateLimiter
RateLimiter.Response
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRateLimiter(Class<C> configClass, String configurationPropertyName, ConfigurationService configurationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetConfigurationPropertyName()voidonApplicationEvent(FilterArgsEvent event)protected voidsetConfigurationService(ConfigurationService configurationService)StringtoString()-
Methods inherited from class org.springframework.cloud.gateway.support.AbstractStatefulConfigurable
getConfig
-
Methods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.springframework.cloud.gateway.support.Configurable
getConfigClass, newConfig
-
Methods inherited from interface org.springframework.cloud.gateway.filter.ratelimit.RateLimiter
isAllowed
-
Methods inherited from interface org.springframework.cloud.gateway.support.StatefulConfigurable
getConfig
-
-
-
-
Constructor Detail
-
AbstractRateLimiter
protected AbstractRateLimiter(Class<C> configClass, String configurationPropertyName, ConfigurationService configurationService)
-
-
Method Detail
-
getConfigurationPropertyName
protected String getConfigurationPropertyName()
-
setConfigurationService
protected void setConfigurationService(ConfigurationService configurationService)
-
onApplicationEvent
public void onApplicationEvent(FilterArgsEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<C>
-
toString
public String toString()
- Overrides:
toStringin classAbstractStatefulConfigurable<C>
-
-