public interface ComponentLifecycle
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PHASE |
| Modifier and Type | Method and Description |
|---|---|
default int |
getPhase()
Return the phase value of this object.
|
boolean |
isRunning()
Check whether this component is currently running.
|
default void |
start()
Start this component.
|
default void |
stop()
Stops this component in a synchronous call, such that the component is fully stopped upon return of this method.
|
static final int DEFAULT_PHASE
boolean isRunning()
default void start()
default void stop()
default int getPhase()
The lower the value, the earlier in the startup sequence the process will start.