Class SpringCloudCircuitBreakerFilterFactory
- java.lang.Object
-
- org.springframework.cloud.gateway.support.AbstractConfigurable<C>
-
- org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<SpringCloudCircuitBreakerFilterFactory.Config>
-
- org.springframework.cloud.gateway.filter.factory.SpringCloudCircuitBreakerFilterFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,GatewayFilterFactory<SpringCloudCircuitBreakerFilterFactory.Config>
,Configurable<SpringCloudCircuitBreakerFilterFactory.Config>
,ShortcutConfigurable
,org.springframework.context.ApplicationEventPublisherAware
- Direct Known Subclasses:
SpringCloudCircuitBreakerResilience4JFilterFactory
public abstract class SpringCloudCircuitBreakerFilterFactory extends AbstractGatewayFilterFactory<SpringCloudCircuitBreakerFilterFactory.Config>
- Author:
- Ryan Baxter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SpringCloudCircuitBreakerFilterFactory.CircuitBreakerStatusCodeException
static class
SpringCloudCircuitBreakerFilterFactory.Config
-
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 String
NAME
CircuitBreaker component name.-
Fields inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
NAME_KEY, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description SpringCloudCircuitBreakerFilterFactory(org.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreakerFactory reactiveCircuitBreakerFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.DispatcherHandler> dispatcherHandlerProvider)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description GatewayFilter
apply(SpringCloudCircuitBreakerFilterFactory.Config config)
protected abstract reactor.core.publisher.Mono<Void>
handleErrorWithoutFallback(Throwable t, boolean resumeWithoutError)
String
name()
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, newConfig
-
Methods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldPrefix, shortcutType
-
-
-
-
Field Detail
-
NAME
public static final String NAME
CircuitBreaker component name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SpringCloudCircuitBreakerFilterFactory
public SpringCloudCircuitBreakerFilterFactory(org.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreakerFactory reactiveCircuitBreakerFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.DispatcherHandler> dispatcherHandlerProvider)
-
-
Method Detail
-
shortcutFieldOrder
public List<String> shortcutFieldOrder()
Description copied from interface:ShortcutConfigurable
Returns hints about the number of args and the order for shortcut parsing.- Returns:
- the list of hints
-
apply
public GatewayFilter apply(SpringCloudCircuitBreakerFilterFactory.Config config)
-
handleErrorWithoutFallback
protected abstract reactor.core.publisher.Mono<Void> handleErrorWithoutFallback(Throwable t, boolean resumeWithoutError)
-
name
public String name()
-
-