public static enum CapabilityTunnel.State extends java.lang.Enum<CapabilityTunnel.State>
CapabilityTunnel.TunnelStatusListener.onStatusChanged(long, int, CapabilityTunnel.State)| Enum Constant and Description |
|---|
CLOSE_FAILED
Status on failure of closure of tunnel.
|
CLOSED
Status on successful closure of tunnel.
|
MAX_CLIENT_REACHED
Status on inability to open tunnel after max client count is reached.
|
OPEN_FAILED
Status on failure of opening.
|
OPENED
Status on successful opening of the tunnel.
|
OPENING
Status on pending opening of the tunnel.
|
REOPENED
Status on reopening of the tunnel.
|
TIMEOUT
Status on timeout of the open or closed commands.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isClosed(CapabilityTunnel.State state)
A function to check if tunnel state is closed.
|
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.