Class AbstractLifecycle
java.lang.Object
com.quietterminal.neon.core.AbstractLifecycle
- All Implemented Interfaces:
Lifecycle
- Direct Known Subclasses:
NeonClient, NeonHost, NeonRelay
-
Nested Class Summary
Nested classes/interfaces inherited from interface Lifecycle
Lifecycle.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoStart()protected abstract voiddoStop()final Lifecycle.StategetState()Returns the current lifecycle state.final booleanReturnstrueif the component is in theLifecycle.State.RUNNINGstate.final voidstart()Starts the component.final voidstop()Stops the component.
-
Constructor Details
-
AbstractLifecycle
public AbstractLifecycle()
-
-
Method Details
-
doStart
-
doStop
-
start
-
stop
-
getState
Description copied from interface:LifecycleReturns the current lifecycle state. -
isRunning
public final boolean isRunning()Description copied from interface:LifecycleReturnstrueif the component is in theLifecycle.State.RUNNINGstate.
-