public interface SubsystemLifecycle
Lifecycle interface for modules and subsystems.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intlevel()Provide a marker as to the level to order initialization, 10,20,30,...voidstart()start - a module should be ready to operate when this returns.voidstop()stop - a module should have performed any shutdown operations by the time this returns.
-
Method Details
-
start
void start()start - a module should be ready to operate when this returns. -
stop
void stop()stop - a module should have performed any shutdown operations by the time this returns. Caution: code must be prepared to operate without assuming this called. Abrupt termination of the JVM is always possible. -
level
default int level()Provide a marker as to the level to order initialization, 10,20,30,... SeeSubsystemfor details.
-