public final class JedisUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ensureJedisConnection(redis.clients.jedis.Jedis jedis)
Ensure that the given connection is established.
|
static boolean |
reconnect(redis.clients.jedis.Jedis jedis,
int reconAttempts,
long reconnectSleepTime)
Attempt to reconnect to Redis.
|
static boolean |
testJedisConnection(redis.clients.jedis.Jedis jedis)
Test if a connection is valid.
|
public static final String PONG
public static boolean ensureJedisConnection(redis.clients.jedis.Jedis jedis)
jedis - a connection to Redispublic static boolean testJedisConnection(redis.clients.jedis.Jedis jedis)
jedis - a connection to Redispublic static boolean reconnect(redis.clients.jedis.Jedis jedis,
int reconAttempts,
long reconnectSleepTime)
jedis - the connection to RedisreconAttempts - number of times to attempt to reconnect before giving upreconnectSleepTime - time in milliseconds to wait between attemptsCopyright © 2011-2013. All Rights Reserved.