Class RedisFailoverExecutor

    • Field Detail

      • timeout

        protected final int timeout
    • Constructor Detail

      • RedisFailoverExecutor

        public RedisFailoverExecutor​(int timeout,
                                     RedisExecutor base)
    • Method Detail

      • execute

        public <T> T execute​(RedisCallable<T> callable)
                      throws redis.clients.jedis.exceptions.JedisConnectionException
        Throws:
        redis.clients.jedis.exceptions.JedisConnectionException
      • subscribe

        public void subscribe​(redis.clients.jedis.JedisPubSub subscriber,
                              String channel)
                       throws redis.clients.jedis.exceptions.JedisConnectionException
        Description copied from interface: RedisExecutor
        Run a subscriber, do not return.
        Throws:
        redis.clients.jedis.exceptions.JedisConnectionException
      • getPool

        public redis.clients.util.Pool<redis.clients.jedis.Jedis> getPool()