Package io.ably.lib.realtime
Class ConnectionStateListener.ConnectionStateChange
java.lang.Object
io.ably.lib.realtime.ConnectionStateListener.ConnectionStateChange
- Enclosing interface:
- ConnectionStateListener
Contains
ConnectionState
change information emitted by the Connection
object.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ConnectionState
The newConnectionState
.final ConnectionEvent
The event that triggered thisConnectionState
change.final ConnectionState
The previousConnectionState
.final ErrorInfo
AnErrorInfo
object containing any information relating to the transition.final long
Duration in milliseconds, after which the client retries a connection where applicable. -
Constructor Summary
ConstructorsConstructorDescriptionConnectionStateChange
(ConnectionState previous, ConnectionState current, long retryIn, ErrorInfo reason) -
Method Summary
-
Field Details
-
event
The event that triggered thisConnectionState
change.Spec: TA5
-
previous
The previousConnectionState
. For theConnectionEvent.update
event, 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
AnErrorInfo
object 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
-
createUpdateEvent
-