ltd.fdsa.starter.limiter.initialize.LimiterInitialize Maven / Gradle / Ivy
package ltd.fdsa.starter.limiter.initialize;
import lombok.Data;
import ltd.fdsa.starter.limiter.annotation.LimitTraffic;
import ltd.fdsa.starter.limiter.annotation.TokenLimitedTraffic;
import ltd.fdsa.starter.limiter.core.execution.RedisLimitTrafficExecution;
import ltd.fdsa.starter.limiter.core.execution.ThreadPoolExecutorExecution;
import ltd.fdsa.starter.limiter.core.factory.ThreadPoolFactory;
import ltd.fdsa.starter.limiter.core.utils.AnnotatedMethodsUtils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.data.redis.core.RedisTemplate;
import javax.annotation.PostConstruct;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ThreadPoolExecutor;
// todo: zhumingwu read it
@Data
public class LimiterInitialize implements ApplicationContextAware {
private ApplicationContext applicationContext;
private RedisTemplate
© 2015 - 2024 Weber Informatics LLC | Privacy Policy