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