public static class ConnectionStateListener.ConnectionStateChange
extends java.lang.Object
ConnectionState change information emitted by the Connection object.| Modifier and Type | Field and Description |
|---|---|
ConnectionState |
current
The new
ConnectionState. |
ConnectionEvent |
event
The event that triggered this
ConnectionState change. |
ConnectionState |
previous
The previous
ConnectionState. |
ErrorInfo |
reason
An
ErrorInfo object containing any information relating to the transition. |
long |
retryIn
Duration in milliseconds, after which the client retries a connection where applicable.
|
| Constructor and Description |
|---|
ConnectionStateChange(ConnectionState previous,
ConnectionState current,
long retryIn,
ErrorInfo reason) |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionStateListener.ConnectionStateChange |
createUpdateEvent(ErrorInfo reason) |
public final ConnectionEvent event
ConnectionState change.
Spec: TA5
public final ConnectionState previous
ConnectionState.
For the ConnectionEvent.update event, this is equal to the current ConnectionState.
Spec: TA2
public final ConnectionState current
ConnectionState.
Spec: TA2
public final long retryIn
Spec: RTN14d, TA2
public ConnectionStateChange(ConnectionState previous, ConnectionState current, long retryIn, ErrorInfo reason)
public static ConnectionStateListener.ConnectionStateChange createUpdateEvent(ErrorInfo reason)