All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nepxion.aquarius.limit.redis.configuration.RedisLimitConfiguration Maven / Gradle / Ivy

Go to download

Nepxion Aquarius is a list of distribution components based on Redis + Zookeeper with Nepxion Matrix AOP framework

There is a newer version: 2.0.13
Show newest version
package com.nepxion.aquarius.limit.redis.configuration;

/**
 * 

Title: Nepxion Aquarius

*

Description: Nepxion Aquarius

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Conditional; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import com.nepxion.aquarius.common.redis.configuration.RedisConfiguration; import com.nepxion.aquarius.common.redis.handler.RedisHandler; import com.nepxion.aquarius.common.redis.handler.RedisHandlerImpl; import com.nepxion.aquarius.limit.LimitDelegate; import com.nepxion.aquarius.limit.LimitExecutor; import com.nepxion.aquarius.limit.redis.condition.RedisLimitCondition; import com.nepxion.aquarius.limit.redis.impl.RedisLimitDelegateImpl; import com.nepxion.aquarius.limit.redis.impl.RedisLimitExecutorImpl; @Configuration @Import({ RedisConfiguration.class }) public class RedisLimitConfiguration { @Bean @Conditional(RedisLimitCondition.class) public LimitDelegate redisLimitDelegate() { return new RedisLimitDelegateImpl(); } @Bean @Conditional(RedisLimitCondition.class) public LimitExecutor redisLimitExecutor() { return new RedisLimitExecutorImpl(); } @Bean @Conditional(RedisLimitCondition.class) @ConditionalOnMissingBean public RedisHandler redisHandler() { return new RedisHandlerImpl(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy