public interface Module<Ctx>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Module.State |
| Modifier and Type | Method and Description |
|---|---|
void |
failDuringInitOrStartup() |
Ctx |
getContext()
The Module must have a valid parentModulator whenever it is inside a module action callback.
|
Module.State |
getState() |
void |
initModule()
Modulator must be set when initModule is called.
|
boolean |
isStopRequested() |
void |
markStopRequested()
Correct way for application to ask the module to stop.
|
void |
releaseModule()
Required pre-state is POST_STOP or FAILED_STARTUP.
|
void |
runOnce()
Required pre-state is WAIT_TO_RUN_OR_STOP.
|
void |
setContext(Ctx pm) |
void |
start()
Required pre-state is WAIT_TO_START.
|
void |
stop()
Required pre-state is WAIT_TO_RUN_OR_STOP.
|
Module.State getState()
void setContext(Ctx pm)
Ctx getContext()
void initModule()
void start()
void runOnce()
void stop()
void releaseModule()
void markStopRequested()
boolean isStopRequested()
void failDuringInitOrStartup()
Copyright © 2010-2015. All Rights Reserved.