Package com.netflix.spinnaker.kork.jedis
Class JedisClientConfiguration
java.lang.Object
com.netflix.spinnaker.kork.jedis.JedisClientConfiguration
@Configuration
@Import(RedisClientConfiguration.class)
public class JedisClientConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjedisClientDelegateFactory(com.netflix.spectator.api.Registry registry, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.apache.commons.pool2.impl.GenericObjectPoolConfig redisPoolConfig) List<org.springframework.boot.actuate.health.HealthIndicator>jedisClientHealthIndicators(List<RedisClientDelegate> redisClientDelegates) org.apache.commons.pool2.impl.GenericObjectPoolConfigBackwards compatibility with pre-kork redis config.
-
Constructor Details
-
JedisClientConfiguration
public JedisClientConfiguration()
-
-
Method Details
-
redisPoolConfig
@Bean @ConditionalOnMissingBean(org.apache.commons.pool2.impl.GenericObjectPoolConfig.class) @ConfigurationProperties("redis") public org.apache.commons.pool2.impl.GenericObjectPoolConfig redisPoolConfig()Backwards compatibility with pre-kork redis config.Services can override this pool config to provide their own default pool config. Individual clients can also override their own pool config.
-
jedisClientDelegateFactory
@Bean @ConditionalOnProperty(value="redis.cluster-enabled", havingValue="false", matchIfMissing=true) public JedisClientDelegateFactory jedisClientDelegateFactory(com.netflix.spectator.api.Registry registry, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.apache.commons.pool2.impl.GenericObjectPoolConfig redisPoolConfig) -
jedisClientHealthIndicators
@Bean @ConditionalOnProperty(value="redis.cluster-enabled", havingValue="false", matchIfMissing=true) public List<org.springframework.boot.actuate.health.HealthIndicator> jedisClientHealthIndicators(List<RedisClientDelegate> redisClientDelegates)
-