Examples of JedisClusterException


Examples of redis.clients.jedis.exceptions.JedisClusterException

      String[] askInfo = parseTargetHostAndSlot(message);
      throw new JedisAskDataException(message, new HostAndPort(
        askInfo[1], Integer.valueOf(askInfo[2])),
        Integer.valueOf(askInfo[0]));
  } else if (message.startsWith(CLUSTERDOWN_RESPONSE)) {
      throw new JedisClusterException(message);
  }
  throw new JedisDataException(message);
    }
View Full Code Here

Examples of redis.clients.jedis.exceptions.JedisClusterException

    public abstract T execute(Jedis connection);

    public T run(String key) {
  if (key == null) {
      throw new JedisClusterException(
        "No way to dispatch this command to Redis Cluster.");
  }

  return runWithRetries(key, this.redirections, false, false);
    }
View Full Code Here

Examples of redis.clients.jedis.exceptions.JedisClusterException

      } else if (jre instanceof JedisMovedDataException) {
    // it rebuilds cluster's slot cache
    // recommended by Redis cluster specification
    this.connectionHandler.renewSlotCache();
      } else {
    throw new JedisClusterException(jre);
      }

      releaseConnection(connection, false);
      connection = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.