Package io.ably.lib.realtime
Class ConnectionStateListener.ConnectionStateChange
java.lang.Object
io.ably.lib.realtime.ConnectionStateListener.ConnectionStateChange
- Enclosing interface:
- ConnectionStateListener
public static class ConnectionStateListener.ConnectionStateChange
extends java.lang.Object
Contains
ConnectionState change information emitted by the Connection object.-
Field Summary
Fields Modifier and Type Field Description ConnectionStatecurrentThe newConnectionState.ConnectionEventeventThe event that triggered thisConnectionStatechange.ConnectionStatepreviousThe previousConnectionState.ErrorInforeasonAnErrorInfoobject containing any information relating to the transition.longretryInDuration in milliseconds, after which the client retries a connection where applicable. -
Constructor Summary
Constructors Constructor Description ConnectionStateChange(ConnectionState previous, ConnectionState current, long retryIn, ErrorInfo reason) -
Method Summary
Modifier and Type Method Description static ConnectionStateListener.ConnectionStateChangecreateUpdateEvent(ErrorInfo reason)
-
Field Details
-
event
The event that triggered thisConnectionStatechange.Spec: TA5
-
previous
The previousConnectionState. For theConnectionEvent.updateevent, this is equal to the currentConnectionState.Spec: TA2
-
current
The newConnectionState.Spec: TA2
-
retryIn
public final long retryInDuration in milliseconds, after which the client retries a connection where applicable.Spec: RTN14d, TA2
-
reason
AnErrorInfoobject containing any information relating to the transition.Spec: RTN4f, TA3
-
-
Constructor Details
-
ConnectionStateChange
public ConnectionStateChange(ConnectionState previous, ConnectionState current, long retryIn, ErrorInfo reason)
-
-
Method Details