public static enum CapabilityTunnel.State extends java.lang.Enum<CapabilityTunnel.State>
| Enum Constant and Description |
|---|
CLOSE_FAILED |
CLOSED |
MAX_CLIENT_REACHED |
OPEN_FAILED |
OPENED |
OPENING |
REOPENED |
TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isClosed(CapabilityTunnel.State state)
A function to check if tunnel state is open.
|
static boolean |
isOpen(CapabilityTunnel.State state)
A function to check if tunnel state is open.
|
static boolean |
isOpeningOrOpened(CapabilityTunnel.State state)
A function to check if tunnel state is opening or opened.
|
static CapabilityTunnel.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CapabilityTunnel.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CapabilityTunnel.State OPENING
public static final CapabilityTunnel.State OPENED
public static final CapabilityTunnel.State REOPENED
public static final CapabilityTunnel.State OPEN_FAILED
public static final CapabilityTunnel.State CLOSED
public static final CapabilityTunnel.State CLOSE_FAILED
public static final CapabilityTunnel.State TIMEOUT
public static final CapabilityTunnel.State MAX_CLIENT_REACHED
public static CapabilityTunnel.State[] values()
for (CapabilityTunnel.State c : CapabilityTunnel.State.values()) System.out.println(c);
public static CapabilityTunnel.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 nullpublic static boolean isOpen(CapabilityTunnel.State state)
state - The enum denoting the state of the tunnel.public static boolean isOpeningOrOpened(CapabilityTunnel.State state)
state - The enum denoting the state of the tunnel.public static boolean isClosed(CapabilityTunnel.State state)
state - The enum denoting the state of the tunnel.