@Configuration @ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnClass(value=com.alibaba.csp.sentinel.adapter.reactor.SentinelReactorTransformer.class) @ConditionalOnProperty(name="spring.cloud.sentinel.enabled", matchIfMissing=true) @EnableConfigurationProperties(value=SentinelProperties.class) public class SentinelWebFluxAutoConfiguration extends Object
Constructor and Description |
---|
SentinelWebFluxAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolvers,
org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer) |
Modifier and Type | Method and Description |
---|---|
void |
init() |
com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler |
sentinelBlockExceptionHandler() |
com.alibaba.csp.sentinel.adapter.spring.webflux.SentinelWebFluxFilter |
sentinelWebFluxFilter() |
public SentinelWebFluxAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolvers, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
@PostConstruct public void init()
@Bean @Order(value=-2) @ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled", matchIfMissing=true) public com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler sentinelBlockExceptionHandler()
@Bean @Order(value=-1) @ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled", matchIfMissing=true) public com.alibaba.csp.sentinel.adapter.spring.webflux.SentinelWebFluxFilter sentinelWebFluxFilter()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.