@Configuration @ConditionalOnClass(value=org.apache.commons.pool2.impl.GenericObjectPool.class) protected static class RedisAutoConfiguration.RedisConnectionConfiguration extends Object
Constructor and Description |
---|
RedisConnectionConfiguration(RedisProperties properties,
org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisSentinelConfiguration> sentinelConfiguration,
org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisClusterConfiguration> clusterConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.data.redis.connection.jedis.JedisConnectionFactory |
applyProperties(org.springframework.data.redis.connection.jedis.JedisConnectionFactory factory) |
protected org.springframework.data.redis.connection.RedisClusterConfiguration |
getClusterConfiguration()
Create a
RedisClusterConfiguration if necessary. |
protected org.springframework.data.redis.connection.RedisSentinelConfiguration |
getSentinelConfig() |
org.springframework.data.redis.connection.jedis.JedisConnectionFactory |
redisConnectionFactory() |
public RedisConnectionConfiguration(RedisProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisSentinelConfiguration> sentinelConfiguration, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisClusterConfiguration> clusterConfiguration)
@Bean @ConditionalOnMissingBean(value=org.springframework.data.redis.connection.RedisConnectionFactory.class) public org.springframework.data.redis.connection.jedis.JedisConnectionFactory redisConnectionFactory() throws UnknownHostException
UnknownHostException
protected final org.springframework.data.redis.connection.jedis.JedisConnectionFactory applyProperties(org.springframework.data.redis.connection.jedis.JedisConnectionFactory factory)
protected final org.springframework.data.redis.connection.RedisSentinelConfiguration getSentinelConfig()
protected final org.springframework.data.redis.connection.RedisClusterConfiguration getClusterConfiguration()
RedisClusterConfiguration
if necessary.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.