public enum ShutdownHookStatus extends Enum<ShutdownHookStatus>
ShutdownHook
. This status is used during shutdown phase to
decide if the component is safe to terminate or not.Enum Constant and Description |
---|
ACTIVE
Indicates that the component has some currently running tasks which will be interrupted, if component is terminated.
|
IDLE
Indicates that the component does not have any currently running tasks and hence safe to terminate.
|
Modifier and Type | Method and Description |
---|---|
static ShutdownHookStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShutdownHookStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShutdownHookStatus ACTIVE
public static final ShutdownHookStatus IDLE
public static ShutdownHookStatus[] values()
for (ShutdownHookStatus c : ShutdownHookStatus.values()) System.out.println(c);
public static ShutdownHookStatus 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 © 2024 Atlassian. All rights reserved.