Examples of RedisSystemException


Examples of org.springframework.data.redis.RedisSystemException

  private static final byte[] ALPHA = "ALPHA".getBytes(Charsets.UTF_8);
  private static final byte[] STORE = "STORE".getBytes(Charsets.UTF_8);

  static DataAccessException convertSRedisAccessException(RuntimeException ex) {
    if (ex instanceof RedisException) {
      return new RedisSystemException("redis exception", ex);
    }
    return null;
  }
View Full Code Here

Examples of org.springframework.data.redis.RedisSystemException

    // use the same charset as the library
    StringReader stringReader = new StringReader(new String(reply.data(), Charsets.UTF_8));
    try {
      info.load(stringReader);
    } catch (Exception ex) {
      throw new RedisSystemException("Cannot read Redis info", ex);
    } finally {
      stringReader.close();
    }
    return info;
  }
View Full Code Here

Examples of org.springframework.data.redis.RedisSystemException

        RedisSentinelConnection connection = connectionCache.remove(node);
        if (connection.isOpen()) {
          try {
            connection.close();
          } catch (IOException e) {
            throw new RedisSystemException("Failed to close sentinel connection", e);
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.springframework.data.redis.RedisSystemException

        broken = true;
      }
      return JredisUtils.convertJredisAccessException((ClientRuntimeException) ex);
    }

    return new RedisSystemException("Unknown JRedis exception", ex);
  }
View Full Code Here

Examples of org.springframework.data.redis.RedisSystemException

    Properties info = new Properties();
    StringReader stringReader = new StringReader(string);
    try {
      info.load(stringReader);
    } catch (Exception ex) {
      throw new RedisSystemException("Cannot read Redis info", ex);
    } finally {
      stringReader.close();
    }
    return info;
  }
View Full Code Here

Examples of org.springframework.data.redis.RedisSystemException

    Properties info = new Properties();
    StringReader stringReader = new StringReader(source);
    try {
      info.load(stringReader);
    } catch (Exception ex) {
      throw new RedisSystemException("Cannot read Redis info", ex);
    } finally {
      stringReader.close();
    }
    return info;
  }
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.