Package redis.clients.jedis.exceptions
Class JedisRedirectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
redis.clients.jedis.exceptions.JedisException
redis.clients.jedis.exceptions.JedisDataException
redis.clients.jedis.exceptions.JedisRedirectionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JedisAskDataException,JedisMovedDataException
Umbrella exception class representing all redirection replies from Redis.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate final intprivate final HostAndPort -
Constructor Summary
ConstructorsConstructorDescriptionJedisRedirectionException(String message, Throwable cause, HostAndPort targetNode, int slot) JedisRedirectionException(String message, HostAndPort targetNode, int slot) JedisRedirectionException(Throwable cause, HostAndPort targetNode, int slot) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
targetNode
-
slot
private final int slot
-
-
Constructor Details
-
JedisRedirectionException
-
JedisRedirectionException
-
JedisRedirectionException
-
-
Method Details
-
getTargetNode
-
getSlot
public final int getSlot()
-