public enum ConnectionMode extends Enum<ConnectionMode>
| Enum Constant and Description |
|---|
STARTANDSTOP |
STARTORCONNECT |
STARTORCONNECTANDLEAVE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowReconnect() |
boolean |
isStoppable() |
static ConnectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionMode STARTANDSTOP
public static final ConnectionMode STARTORCONNECT
public static final ConnectionMode STARTORCONNECTANDLEAVE
public static ConnectionMode[] values()
for (ConnectionMode c : ConnectionMode.values()) System.out.println(c);
public static ConnectionMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isAllowReconnect()
public boolean isStoppable()
Copyright © 2015 JBoss by Red Hat. All rights reserved.