Class ShutdownHookWebFilter
java.lang.Object
com.huaweicloud.common.adapters.webflux.ShutdownHookWebFilter
- All Implemented Interfaces:
org.springframework.boot.web.reactive.filter.OrderedWebFilter,org.springframework.core.Ordered,org.springframework.web.server.WebFilter
public class ShutdownHookWebFilter
extends Object
implements org.springframework.boot.web.reactive.filter.OrderedWebFilter
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.springframework.boot.web.reactive.filter.OrderedWebFilter
REQUEST_WRAPPER_FILTER_MAX_ORDER -
Constructor Summary
ConstructorsConstructorDescriptionShutdownHookWebFilter(ContextProperties contextProperties, ClosedEventListener closedEventListener) -
Method Summary
-
Constructor Details
-
ShutdownHookWebFilter
public ShutdownHookWebFilter(ContextProperties contextProperties, ClosedEventListener closedEventListener)
-
-
Method Details
-
filter
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain) - Specified by:
filterin interfaceorg.springframework.web.server.WebFilter
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-