Class LimiterAwareHandler

java.lang.Object
org.aoju.bus.starter.limiter.AbstractLimiterAware
org.aoju.bus.starter.limiter.LimiterAwareHandler
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.annotation.ImportAware, org.springframework.context.ResourceLoaderAware

@Role(2) public class LimiterAwareHandler extends AbstractLimiterAware implements org.springframework.context.ResourceLoaderAware
限流配置
Since:
Java 17+
Version:
6.5.0
Author:
Kimi Liu
  • Constructor Details

    • LimiterAwareHandler

      public LimiterAwareHandler()
  • Method Details

    • setResourceLoader

      public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
      Specified by:
      setResourceLoader in interface org.springframework.context.ResourceLoaderAware
    • limiterAdvisor

      @Bean @Role(2) public org.aoju.bus.limiter.intercept.BeanFactoryLimitedResourceSourceAdvisor limiterAdvisor(org.aoju.bus.limiter.resource.LimitedResourceSource limitedResourceSource, org.aoju.bus.limiter.intercept.LimiterInterceptor limiterInterceptor)
    • limitedResourceSource

      @Bean @Role(2) public org.aoju.bus.limiter.resource.LimitedResourceSource limitedResourceSource()
    • limiterInterceptor

      @Bean @Role(2) public org.aoju.bus.limiter.intercept.LimiterInterceptor limiterInterceptor(org.aoju.bus.limiter.resource.LimitedResourceSource limitedResourceSource)