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