Class LocalRateLimitFilter
java.lang.Object
org.chenile.security.auth.gateway.filter.LocalRateLimitFilter
- All Implemented Interfaces:
org.springframework.cloud.gateway.filter.GlobalFilter, Ordered
@Component
public class LocalRateLimitFilter
extends Object
implements org.springframework.cloud.gateway.filter.GlobalFilter, Ordered
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GatewayAuditServiceprivate final Map<String, LocalRateLimitFilter.CounterWindow> private static final intFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange, org.springframework.cloud.gateway.filter.GatewayFilterChain chain) intgetOrder()
-
Field Details
-
LIMIT_PER_MINUTE
private static final int LIMIT_PER_MINUTE- See Also:
-
counters
-
auditService
-
-
Constructor Details
-
LocalRateLimitFilter
-
-
Method Details
-
filter
public reactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange, org.springframework.cloud.gateway.filter.GatewayFilterChain chain) - Specified by:
filterin interfaceorg.springframework.cloud.gateway.filter.GlobalFilter
-
getOrder
-
CHENILE