@Configuration public class SentinelPluginConfiguration extends Object
| Constructor and Description |
|---|
SentinelPluginConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> listObjectProvider,
org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
sentinelPluginConfiguration constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.shenyu.plugin.base.fallback.FallbackHandler |
fallbackHandler()
Fallback handler.
|
com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler |
sentinelBlockExceptionHandler()
Sentinel exception handler.
|
SentinelPlugin |
sentinelPlugin(org.apache.shenyu.plugin.base.fallback.FallbackHandler fallbackHandler)
Sentinel plugin.
|
org.apache.shenyu.plugin.base.handler.PluginDataHandler |
sentinelRuleHandle()
Sentinel plugin data handler plugin data handler.
|
public SentinelPluginConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> listObjectProvider, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
listObjectProvider - the list object providerserverCodecConfigurer - the server codec configurer@Bean public SentinelPlugin sentinelPlugin(org.apache.shenyu.plugin.base.fallback.FallbackHandler fallbackHandler)
fallbackHandler - the fallback handler@Bean @ConditionalOnMissingBean(value=org.apache.shenyu.plugin.base.fallback.FallbackHandler.class) public org.apache.shenyu.plugin.base.fallback.FallbackHandler fallbackHandler()
@Bean public org.apache.shenyu.plugin.base.handler.PluginDataHandler sentinelRuleHandle()
@Bean @Order(value=-2147483648) public com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler sentinelBlockExceptionHandler()
Copyright © 2021 The Apache Software Foundation. All rights reserved.