public static enum Configuration.ShutdownHookBehavior extends Enum<Configuration.ShutdownHookBehavior>
Enum Constant and Description |
---|
DEFAULT
By default a shutdown hook is registered if no MBean server (apart from the JDK default) is detected.
|
DONT_REGISTER
Forces the cache NOT to register a shutdown hook, even if no MBean server is detected.
|
REGISTER
Forces the cache to register a shutdown hook even if an MBean server is detected.
|
Modifier and Type | Method and Description |
---|---|
static Configuration.ShutdownHookBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Configuration.ShutdownHookBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Configuration.ShutdownHookBehavior DEFAULT
public static final Configuration.ShutdownHookBehavior REGISTER
public static final Configuration.ShutdownHookBehavior DONT_REGISTER
public static Configuration.ShutdownHookBehavior[] values()
for (Configuration.ShutdownHookBehavior c : Configuration.ShutdownHookBehavior.values()) System.out.println(c);
public static Configuration.ShutdownHookBehavior 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 nullCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.