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
ConstructorsModifierConstructorDescriptionprotectedAbstractRateLimiter(Class<C> configClass, String configurationPropertyName, ConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringvoidprotected voidsetConfigurationService(ConfigurationService configurationService) toString()Methods inherited from class org.springframework.cloud.gateway.support.AbstractStatefulConfigurable
getConfigMethods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.cloud.gateway.support.Configurable
getConfigClass, newConfigMethods inherited from interface org.springframework.cloud.gateway.filter.ratelimit.RateLimiter
isAllowedMethods inherited from interface org.springframework.cloud.gateway.support.StatefulConfigurable
getConfig
-
Constructor Details
-
AbstractRateLimiter
protected AbstractRateLimiter(Class<C> configClass, String configurationPropertyName, ConfigurationService configurationService)
-
-
Method Details
-
getConfigurationPropertyName
-
setConfigurationService
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<C>
-
toString
- Overrides:
toStringin classAbstractStatefulConfigurable<C>
-