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
public class JedisRedirectionException extends JedisDataException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JedisRedirectionException(String message, Throwable cause, HostAndPort targetNode, int slot)
JedisRedirectionException(String message, HostAndPort targetNode, int slot)
JedisRedirectionException(Throwable cause, HostAndPort targetNode, int slot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSlot()
HostAndPort
getTargetNode()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JedisRedirectionException
public JedisRedirectionException(String message, HostAndPort targetNode, int slot)
-
JedisRedirectionException
public JedisRedirectionException(Throwable cause, HostAndPort targetNode, int slot)
-
JedisRedirectionException
public JedisRedirectionException(String message, Throwable cause, HostAndPort targetNode, int slot)
-
-
Method Detail
-
getTargetNode
public HostAndPort getTargetNode()
-
getSlot
public int getSlot()
-
-