Class CachingRouteLocator
java.lang.Object
org.springframework.cloud.gateway.route.CachingRouteLocator
- All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, RouteLocator, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.ApplicationListener<RefreshRoutesEvent>, org.springframework.core.Ordered
public class CachingRouteLocator
extends Object
implements org.springframework.core.Ordered, RouteLocator, org.springframework.context.ApplicationListener<RefreshRoutesEvent>, org.springframework.context.ApplicationEventPublisherAware
- Author:
- Spencer Gibb
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()reactor.core.publisher.Flux<Route> voidreactor.core.publisher.Flux<Route> refresh()Clears the routes cache.voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface RouteLocator
getRoutesByMetadata
-
Constructor Details
-
CachingRouteLocator
-
-
Method Details
-
getRoutes
- Specified by:
getRoutesin interfaceRouteLocator
-
refresh
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<RefreshRoutesEvent>
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware
-