Package com.trendyol.jdempotent.redis
Class ApplicationConfig
java.lang.Object
com.trendyol.jdempotent.redis.ApplicationConfig
@Configuration @ConditionalOnProperty(value="jdempotent.enable", havingValue="true", matchIfMissing=true) public class ApplicationConfig extends Object
-
Constructor Summary
Constructors Constructor Description ApplicationConfig(RedisConfigProperties redisProperties)
-
Method Summary
Modifier and Type Method Description com.trendyol.jdempotent.core.aspect.IdempotentAspect
getIdempotentAspect(org.springframework.data.redis.core.RedisTemplate redisTemplate)
com.trendyol.jdempotent.core.aspect.IdempotentAspect
getIdempotentAspect(org.springframework.data.redis.core.RedisTemplate redisTemplate, com.trendyol.jdempotent.core.callback.ErrorConditionalCallback errorConditionalCallback)
-
Constructor Details
-
Method Details
-
getIdempotentAspect
@Bean @ConditionalOnProperty(value="jdempotent.enable", havingValue="true", matchIfMissing=true) @ConditionalOnClass(com.trendyol.jdempotent.core.callback.ErrorConditionalCallback.class) public com.trendyol.jdempotent.core.aspect.IdempotentAspect getIdempotentAspect(org.springframework.data.redis.core.RedisTemplate redisTemplate, com.trendyol.jdempotent.core.callback.ErrorConditionalCallback errorConditionalCallback) -
getIdempotentAspect
@Bean public com.trendyol.jdempotent.core.aspect.IdempotentAspect getIdempotentAspect(org.springframework.data.redis.core.RedisTemplate redisTemplate)
-