public class HystrixGatewayFilterFactory extends AbstractGatewayFilterFactory<HystrixGatewayFilterFactory.Config>
https://cloud.spring.io/spring-cloud-netflix/.| Modifier and Type | Class and Description |
|---|---|
static class |
HystrixGatewayFilterFactory.Config |
AbstractGatewayFilterFactory.NameConfigShortcutConfigurable.ShortcutTypeNAME_KEY, VALUE_KEY| Constructor and Description |
|---|
HystrixGatewayFilterFactory(org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.DispatcherHandler> dispatcherHandlerProvider) |
| Modifier and Type | Method and Description |
|---|---|
GatewayFilter |
apply(HystrixGatewayFilterFactory.Config config) |
GatewayFilter |
apply(String routeId,
Consumer<HystrixGatewayFilterFactory.Config> consumer) |
protected com.netflix.hystrix.HystrixObservableCommand.Setter |
createCommandSetter(HystrixGatewayFilterFactory.Config config,
org.springframework.web.server.ServerWebExchange exchange)
Create a
HystrixObservableCommand.Setter based on incoming request attribute. |
List<String> |
shortcutFieldOrder()
Returns hints about the number of args and the order for shortcut parsing.
|
getPublisher, setApplicationEventPublishergetConfigClass, newConfig, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, apply, getConfigClass, mutate, name, newConfiggetValue, normalizeKey, shortcutFieldPrefix, shortcutTypepublic HystrixGatewayFilterFactory(org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.DispatcherHandler> dispatcherHandlerProvider)
public List<String> shortcutFieldOrder()
ShortcutConfigurablepublic GatewayFilter apply(String routeId, Consumer<HystrixGatewayFilterFactory.Config> consumer)
protected com.netflix.hystrix.HystrixObservableCommand.Setter createCommandSetter(HystrixGatewayFilterFactory.Config config, org.springframework.web.server.ServerWebExchange exchange)
HystrixObservableCommand.Setter based on incoming request attribute. HystrixCommandKey
being set as the target service's host:port, as obtained from
ServerWebExchange.getRequest() to do per service instance level circuit
breaking.public GatewayFilter apply(HystrixGatewayFilterFactory.Config config)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.