public class ConnectionReset extends ConnectionException
Connection
to indicate that the connection to redis was
reset (typically due to timeout on Redis side).
If the Connection
is specified to use
auto-reconnect, the connection has been re-established, but, the status of the request that
gave rise to this exception is indeterminate, in the sense that while this exception certainly indicates
that the response was not received from Redis, it is not clear whether the request itself was
received by the server. This is due to the fact that writing to the OutputStream
of a Socket
that has been closed by the remote peer does NOT raise an exception. The exception is raised (reliably) only
on the receive when reading from the Socket
's InputStream
.
Depending on the application domain and the Command
of the request, the user may retry
the request.
Constructor and Description |
---|
ConnectionReset(String msg) |
ConnectionReset(String msg,
SocketException e) |
getLocalizedMessage, getMessage
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ConnectionReset(String msg, SocketException e)
string
- e
- public ConnectionReset(String msg)
Copyright © 2009–2019. All rights reserved.