Package io.ably.lib.realtime
Class ChannelStateListener.ChannelStateChange
java.lang.Object
io.ably.lib.realtime.ChannelStateListener.ChannelStateChange
- Enclosing interface:
- ChannelStateListener
public static class ChannelStateListener.ChannelStateChange
extends java.lang.Object
Contains state change information emitted by
Channel objects.-
Field Summary
Fields Modifier and Type Field Description ChannelStatecurrentThe new currentChannelState.ChannelEventeventThe event that triggered thisChannelStatechange.ChannelStatepreviousThe previous state.ErrorInforeasonAnErrorInfoobject containing any information relating to the transition.booleanresumedIndicates whether message continuity on this channel is preserved, see Nonfatal channel errors for more info. -
Method Summary
-
Field Details
-
event
The event that triggered thisChannelStatechange.Spec: TH5
-
current
The new currentChannelState.Spec: RTL2a, RTL2b
-
previous
The previous state. For theChannelEvent.updateevent, this is equal to the currentChannelState.Spec: RTL2a, RTL2b
-
reason
AnErrorInfoobject containing any information relating to the transition.Spec: RTL2e, TH3
-
resumed
public final boolean resumedIndicates whether message continuity on this channel is preserved, see Nonfatal channel errors for more info.Spec: RTL2f, TH4
-