public class WeightRoutePredicateFactory extends AbstractRoutePredicateFactory<WeightConfig> implements org.springframework.context.ApplicationEventPublisherAware
ShortcutConfigurable.ShortcutType
Modifier and Type | Field and Description |
---|---|
static String |
GROUP_KEY
Weight config group key.
|
static String |
WEIGHT_KEY
Weight config weight key.
|
PATTERN_KEY
Constructor and Description |
---|
WeightRoutePredicateFactory() |
Modifier and Type | Method and Description |
---|---|
Predicate<org.springframework.web.server.ServerWebExchange> |
apply(WeightConfig config) |
void |
beforeApply(WeightConfig config) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
List<String> |
shortcutFieldOrder()
Returns hints about the number of args and the order for shortcut parsing.
|
String |
shortcutFieldPrefix() |
getConfigClass, newConfig, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
apply, applyAsync, applyAsync, getConfigClass, name, newConfig
getValue, normalizeKey, shortcutType
public static final String GROUP_KEY
public static final String WEIGHT_KEY
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
public List<String> shortcutFieldOrder()
ShortcutConfigurable
shortcutFieldOrder
in interface ShortcutConfigurable
public String shortcutFieldPrefix()
shortcutFieldPrefix
in interface ShortcutConfigurable
public void beforeApply(WeightConfig config)
beforeApply
in interface RoutePredicateFactory<WeightConfig>
public Predicate<org.springframework.web.server.ServerWebExchange> apply(WeightConfig config)
apply
in interface RoutePredicateFactory<WeightConfig>
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.