Example usage for org.springframework.data.redis.connection RedisSentinelConfiguration getSentinels

List of usage examples for org.springframework.data.redis.connection RedisSentinelConfiguration getSentinels

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection RedisSentinelConfiguration getSentinels.

Prototype

public Set<RedisNode> getSentinels() 

Source Link

Usage

From source file:org.solq.dht.db.redis.service.JedisConnectionFactory.java

/**
 * Creates {@link JedisSentinelPool}./*from  w  w w  .  j  av a  2  s.com*/
 * 
 * @param config
 * @return
 * @since 1.4
 */
protected Pool<Jedis> createRedisSentinelPool(RedisSentinelConfiguration config) {
    return new JedisSentinelPool(config.getMaster().getName(), convertToJedisSentinelSet(config.getSentinels()),
            getPoolConfig() != null ? getPoolConfig() : new JedisPoolConfig(), getTimeoutFrom(getShardInfo()),
            getShardInfo().getPassword());
}