org.springframework.data.keyvalue.redis.connection.jedis
Class JedisUtils
java.lang.Object
org.springframework.data.keyvalue.redis.connection.jedis.JedisUtils
public abstract class JedisUtils
- extends Object
Helper class featuring methods for Jedis connection handling, providing support for exception translation.
- Author:
- Costin Leau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JedisUtils
public JedisUtils()
convertJedisAccessException
public static DataAccessException convertJedisAccessException(redis.clients.jedis.exceptions.JedisException ex)
- Converts the given, native Jedis exception to Spring's DAO hierarchy.
- Parameters:
ex
- Jedis exception
- Returns:
- converted exception
convertJedisAccessException
public static DataAccessException convertJedisAccessException(RuntimeException ex)
- Converts the given, native, runtime Jedis exception to Spring's DAO hierarchy.
- Parameters:
ex
- Jedis runtime/unchecked exception
- Returns:
- converted exception
Copyright © 2010-2011 SpringSource. All Rights Reserved.