List of usage examples for org.springframework.data.redis.connection.jedis JedisSentinelConnection JedisSentinelConnection
public JedisSentinelConnection(Jedis jedis)
From source file:org.solq.dht.db.redis.service.JedisConnectionFactory.java
@Override public RedisSentinelConnection getSentinelConnection() { if (!isRedisSentinelAware()) { throw new InvalidDataAccessResourceUsageException("No Sentinels configured"); }// ww w . j a v a 2 s . c o m return new JedisSentinelConnection(getActiveSentinel()); }