Enum ShutdownController.State
java.lang.Object
java.lang.Enum<ShutdownController.State>
ch.raffael.meldioc.library.base.lifecycle.ShutdownController.State
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ShutdownController.State>,java.lang.constant.Constable
- Enclosing interface:
- ShutdownController
public static enum ShutdownController.State extends java.lang.Enum<ShutdownController.State>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description ANNOUNCEDA shutdown has been announced, shutdown preventing actions are not possible anymore.COMPLETEThe shutdown is complete, with or without errors.DORMANTNo shutdown initiated up to now.FINALIZINGonFinalizehook a are being run.INITIATEDA shutdown has been initiated, possibly waiting for shutdown preventing actions to finish.PERFORMINGonPerformhook a are being run.PREPARINGonPreparehook a are being run. -
Method Summary
Modifier and Type Method Description voidcheckStateBefore(ShutdownController.State before)voidcheckStateBeforeOrEqual(ShutdownController.State before)booleanisBefore(ShutdownController.State before)booleanisBeforeOrEqual(ShutdownController.State before)static ShutdownController.StatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ShutdownController.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
DORMANT
No shutdown initiated up to now. -
ANNOUNCED
A shutdown has been announced, shutdown preventing actions are not possible anymore. -
INITIATED
A shutdown has been initiated, possibly waiting for shutdown preventing actions to finish. Shutdown preventing actions are not possible anymore. -
PREPARING
onPreparehook a are being run. -
PERFORMING
onPerformhook a are being run. -
FINALIZING
onFinalizehook a are being run. -
COMPLETE
The shutdown is complete, with or without errors.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isBefore
-
isBeforeOrEqual
-
checkStateBefore
-
checkStateBeforeOrEqual
-