类 SentinelPluginConfiguration

java.lang.Object
org.apache.shenyu.springboot.starter.plugin.sentinel.SentinelPluginConfiguration

@Configuration @ConditionalOnProperty(value="shenyu.plugins.sentinel.enabled", havingValue="true", matchIfMissing=true) public class SentinelPluginConfiguration extends Object
Sentinel plugin configuration.
  • 构造器概要

    构造器
    构造器
    说明
    SentinelPluginConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> listObjectProvider, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
    sentinelPluginConfiguration constructor.
  • 方法概要

    修饰符和类型
    方法
    说明
    org.apache.shenyu.plugin.base.fallback.FallbackHandler
    Fallback handler.
    com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler
    Sentinel exception handler.
    org.apache.shenyu.plugin.api.ShenyuPlugin
    sentinelPlugin(org.apache.shenyu.plugin.base.fallback.FallbackHandler fallbackHandler)
    Sentinel plugin.
    org.apache.shenyu.plugin.base.handler.PluginDataHandler
    Sentinel plugin data handler.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • SentinelPluginConfiguration

      public SentinelPluginConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> listObjectProvider, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
      sentinelPluginConfiguration constructor.
      参数:
      listObjectProvider - the list object provider
      serverCodecConfigurer - the server codec configurer
  • 方法详细资料

    • sentinelPlugin

      @Bean public org.apache.shenyu.plugin.api.ShenyuPlugin sentinelPlugin(org.apache.shenyu.plugin.base.fallback.FallbackHandler fallbackHandler)
      Sentinel plugin.
      参数:
      fallbackHandler - the fallback handler
      返回:
      the shenyu plugin
    • fallbackHandler

      @Bean @ConditionalOnMissingBean(org.apache.shenyu.plugin.base.fallback.FallbackHandler.class) public org.apache.shenyu.plugin.base.fallback.FallbackHandler fallbackHandler()
      Fallback handler.
      返回:
      the default fallback handler
    • sentinelRuleHandle

      @Bean public org.apache.shenyu.plugin.base.handler.PluginDataHandler sentinelRuleHandle()
      Sentinel plugin data handler.
      返回:
      the plugin data handler
    • sentinelBlockExceptionHandler

      @Bean @Order(-2147483648) public com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler sentinelBlockExceptionHandler()
      Sentinel exception handler.
      返回:
      the shenyu plugin