public static enum BayeuxClient.State extends java.lang.Enum<BayeuxClient.State>
BayeuxClient
may assumeEnum Constant | Description |
---|---|
CONNECTED |
State assumed when this
BayeuxClient is connected to the Bayeux server |
CONNECTING |
State assumed when the connect is being sent for the first time
|
DISCONNECTED |
State assumed before the handshake and when the disconnect is completed
|
DISCONNECTING |
State assumed when the disconnect is being sent
|
HANDSHAKEN |
State assumed when the handshake is received, but before connecting
|
HANDSHAKING |
State assumed when the handshake is being sent
|
REHANDSHAKING |
State assumed when a first handshake failed and the handshake is retried,
or when the Bayeux server requests a re-handshake
|
TERMINATING |
State assumed when the disconnect is received but terminal actions must be performed
|
UNCONNECTED |
State assumed after the handshake when the connection is broken
|
Modifier and Type | Method | Description |
---|---|---|
static BayeuxClient.State |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static BayeuxClient.State[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BayeuxClient.State UNCONNECTED
public static final BayeuxClient.State HANDSHAKING
public static final BayeuxClient.State REHANDSHAKING
public static final BayeuxClient.State HANDSHAKEN
public static final BayeuxClient.State CONNECTING
public static final BayeuxClient.State CONNECTED
BayeuxClient
is connected to the Bayeux serverpublic static final BayeuxClient.State DISCONNECTING
public static final BayeuxClient.State TERMINATING
public static final BayeuxClient.State DISCONNECTED
public static BayeuxClient.State[] values()
for (BayeuxClient.State c : BayeuxClient.State.values()) System.out.println(c);
public static BayeuxClient.State 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 nullCopyright © 2008–2017 The CometD Project. All rights reserved.