public enum ShutdownHookBehavior extends Enum<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 ShutdownHookBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShutdownHookBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShutdownHookBehavior DEFAULT
public static final ShutdownHookBehavior REGISTER
public static final ShutdownHookBehavior DONT_REGISTER
public static ShutdownHookBehavior[] values()
for (ShutdownHookBehavior c : ShutdownHookBehavior.values()) System.out.println(c);
public static 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 by Red Hat. All Rights Reserved.