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 ConnectionStateThe newConnectionState.final ConnectionEventThe event that triggered thisConnectionStatechange.final ConnectionStateThe previousConnectionState.final ErrorInfoAnErrorInfoobject containing any information relating to the transition.final longDuration 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 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
-
createUpdateEvent
-