Example usage for org.springframework.data.redis.connection.jedis JedisSentinelConnection JedisSentinelConnection

List of usage examples for org.springframework.data.redis.connection.jedis JedisSentinelConnection JedisSentinelConnection

Introduction

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

Prototype

public JedisSentinelConnection(Jedis jedis) 

Source Link

Usage

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());
}