public class ReconnectFailedEvent extends Object
| Constructor and Description |
|---|
ReconnectFailedEvent(SocketAddress local,
SocketAddress remote,
Throwable cause,
int attempt) |
ReconnectFailedEvent(String redisUri,
String epId,
SocketAddress local,
SocketAddress remote,
Throwable cause,
int attempt) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttempt()
Returns the reconnect attempt counter for the connection.
|
Throwable |
getCause()
Returns the
Throwable that describes the reconnect cause. |
SocketAddress |
localAddress()
Returns the local address.
|
SocketAddress |
remoteAddress()
Returns the remote address.
|
String |
toString() |
public ReconnectFailedEvent(String redisUri, String epId, SocketAddress local, SocketAddress remote, Throwable cause, int attempt)
public ReconnectFailedEvent(SocketAddress local, SocketAddress remote, Throwable cause, int attempt)
public Throwable getCause()
Throwable that describes the reconnect cause.Throwable that describes the reconnect cause.public int getAttempt()
0 represents the first attempt. The
counter is reset upon successful reconnect.0 represents the first attempt.public SocketAddress localAddress()
localAddress in interface ConnectionIdpublic SocketAddress remoteAddress()
remoteAddress in interface ConnectionIdCopyright © 2025 lettuce.io. All rights reserved.