Enum Class ShutdownController.State
java.lang.Object
java.lang.Enum<ShutdownController.State>
ch.raffael.meldioc.library.base.lifecycle.ShutdownController.State
- All Implemented Interfaces:
Serializable,Comparable<ShutdownController.State>,Constable
- Enclosing interface:
ShutdownController
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA shutdown has been announced, shutdown preventing actions are not possible anymore.The shutdown is complete, with or without errors.No shutdown initiated up to now.onFinalizehook a are being run.A shutdown has been initiated, possibly waiting for shutdown preventing actions to finish.onPerformhook a are being run.onPreparehook a are being run. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanisBefore(ShutdownController.State before) booleanstatic ShutdownController.StateReturns the enum constant of this class with the specified name.static ShutdownController.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isBefore
-
isBeforeOrEqual
-
checkStateBefore
-
checkStateBeforeOrEqual
-