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.ObjectContainsConnectionStatechange information emitted by theConnectionobject.
-
-
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionStateListener.ConnectionStateChangecreateUpdateEvent(ErrorInfo reason)
-
-
-
Field Detail
-
event
public final ConnectionEvent event
The event that triggered thisConnectionStatechange.Spec: TA5
-
previous
public final ConnectionState previous
The previousConnectionState. For theConnectionEvent.updateevent, this is equal to the currentConnectionState.Spec: TA2
-
current
public final ConnectionState current
The newConnectionState.Spec: TA2
-
retryIn
public final long retryIn
Duration in milliseconds, after which the client retries a connection where applicable.Spec: RTN14d, TA2
-
-
Constructor Detail
-
ConnectionStateChange
public ConnectionStateChange(ConnectionState previous, ConnectionState current, long retryIn, ErrorInfo reason)
-
-
Method Detail
-
createUpdateEvent
public static ConnectionStateListener.ConnectionStateChange createUpdateEvent(ErrorInfo reason)
-
-