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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, applyAsync, applyAsync, getConfigClass, name, newConfiggetValue, normalizeKey, shortcutTypepublic 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.ApplicationEventPublisherAwarepublic List<String> shortcutFieldOrder()
ShortcutConfigurableshortcutFieldOrder in interface ShortcutConfigurablepublic String shortcutFieldPrefix()
shortcutFieldPrefix in interface ShortcutConfigurablepublic 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 © 2021 Pivotal Software, Inc.. All rights reserved.