Class RetryGatewayFilterFactory
- java.lang.Object
-
- org.springframework.cloud.gateway.support.AbstractConfigurable<C>
-
- org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<RetryGatewayFilterFactory.RetryConfig>
-
- org.springframework.cloud.gateway.filter.factory.RetryGatewayFilterFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,GatewayFilterFactory<RetryGatewayFilterFactory.RetryConfig>,Configurable<RetryGatewayFilterFactory.RetryConfig>,ShortcutConfigurable,org.springframework.context.ApplicationEventPublisherAware
public class RetryGatewayFilterFactory extends AbstractGatewayFilterFactory<RetryGatewayFilterFactory.RetryConfig>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetryGatewayFilterFactory.BackoffConfigstatic classRetryGatewayFilterFactory.RetryConfig-
Nested classes/interfaces inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
AbstractGatewayFilterFactory.NameConfig
-
Nested classes/interfaces inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType
-
-
Field Summary
Fields Modifier and Type Field Description static StringRETRY_ITERATION_KEYRetry iteration key.-
Fields inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
NAME_KEY, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description RetryGatewayFilterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GatewayFilterapply(String routeId, reactor.retry.Repeat<org.springframework.web.server.ServerWebExchange> repeat, reactor.retry.Retry<org.springframework.web.server.ServerWebExchange> retry)GatewayFilterapply(RetryGatewayFilterFactory.RetryConfig retryConfig)booleanexceedsMaxIterations(org.springframework.web.server.ServerWebExchange exchange, RetryGatewayFilterFactory.RetryConfig retryConfig)voidreset(org.springframework.web.server.ServerWebExchange exchange)Deprecated.List<String>shortcutFieldOrder()Returns hints about the number of args and the order for shortcut parsing.-
Methods inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
getPublisher, setApplicationEventPublisher
-
Methods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig, toString
-
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.filter.factory.GatewayFilterFactory
apply, apply, apply, getConfigClass, name, newConfig
-
Methods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldPrefix, shortcutType
-
-
-
-
Field Detail
-
RETRY_ITERATION_KEY
public static final String RETRY_ITERATION_KEY
Retry iteration key.- See Also:
- Constant Field Values
-
-
Method Detail
-
shortcutFieldOrder
public List<String> shortcutFieldOrder()
Description copied from interface:ShortcutConfigurableReturns hints about the number of args and the order for shortcut parsing.- Returns:
- the list of hints
-
apply
public GatewayFilter apply(RetryGatewayFilterFactory.RetryConfig retryConfig)
-
exceedsMaxIterations
public boolean exceedsMaxIterations(org.springframework.web.server.ServerWebExchange exchange, RetryGatewayFilterFactory.RetryConfig retryConfig)
-
reset
@Deprecated public void reset(org.springframework.web.server.ServerWebExchange exchange)
Deprecated.
-
apply
public GatewayFilter apply(String routeId, reactor.retry.Repeat<org.springframework.web.server.ServerWebExchange> repeat, reactor.retry.Retry<org.springframework.web.server.ServerWebExchange> retry)
-
-