public enum ChannelState extends java.lang.Enum<ChannelState>
Channel object.| Enum Constant and Description |
|---|
attached
The attach has succeeded.
|
attaching
An attach has been initiated by sending a request to Ably.
|
detached
The channel, having previously been ATTACHED, has been detached by the user.
|
detaching
A detach has been initiated on an ATTACHED channel by sending a request to Ably.
|
failed
An indefinite failure condition.
|
initialized
The channel has been initialized but no attach has yet been attempted.
|
suspended
The channel, having previously been ATTACHED, has lost continuity,
usually due to the client being disconnected from Ably for longer than two minutes.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelEvent |
getChannelEvent() |
boolean |
isReattachable() |
static ChannelState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChannelState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelState initialized
public static final ChannelState attaching
public static final ChannelState attached
public static final ChannelState detaching
public static final ChannelState detached
public static final ChannelState failed
public static final ChannelState suspended
public static ChannelState[] values()
for (ChannelState c : ChannelState.values()) System.out.println(c);
public static ChannelState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic ChannelEvent getChannelEvent()
public boolean isReattachable()