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.NameConfig
ShortcutConfigurable.ShortcutType
NAME_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, setApplicationEventPublisher
getConfigClass, newConfig, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
apply, apply, getConfigClass, mutate, name, newConfig
getValue, normalizeKey, shortcutFieldPrefix, shortcutType
public HystrixGatewayFilterFactory(org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.DispatcherHandler> dispatcherHandlerProvider)
public List<String> shortcutFieldOrder()
ShortcutConfigurable
public 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 © 2019 Pivotal Software, Inc.. All rights reserved.