Spring Data Key-Value

org.springframework.data.keyvalue.redis.connection.jedis
Class JedisUtils

java.lang.Object
  extended by 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

Constructor Summary
JedisUtils()
           
 
Method Summary
static DataAccessException convertJedisAccessException(redis.clients.jedis.exceptions.JedisException ex)
          Converts the given, native Jedis exception to Spring's DAO hierarchy.
static DataAccessException convertJedisAccessException(RuntimeException ex)
          Converts the given, native, runtime Jedis exception to Spring's DAO hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JedisUtils

public JedisUtils()
Method Detail

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

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.