public class CachingRouteLocator extends Object implements org.springframework.core.Ordered, RouteLocator, org.springframework.context.ApplicationListener<RefreshRoutesEvent>, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
CachingRouteLocator(RouteLocator delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
reactor.core.publisher.Flux<Route> |
getRoutes() |
void |
onApplicationEvent(RefreshRoutesEvent event) |
reactor.core.publisher.Flux<Route> |
refresh()
Clears the routes cache.
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
public CachingRouteLocator(RouteLocator delegate)
public reactor.core.publisher.Flux<Route> getRoutes()
getRoutes in interface RouteLocatorpublic reactor.core.publisher.Flux<Route> refresh()
public void onApplicationEvent(RefreshRoutesEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<RefreshRoutesEvent>public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwareCopyright © 2022 Pivotal Software, Inc.. All rights reserved.