Class WorkflowLifecycle
java.lang.Object
io.nflow.engine.internal.executor.WorkflowLifecycle
- All Implemented Interfaces:
Lifecycle,Phased,SmartLifecycle
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowLifecycle(WorkflowDispatcher dispatcher, ThreadFactory nflowThreadFactory, Environment env) -
Method Summary
-
Constructor Details
-
WorkflowLifecycle
@Inject public WorkflowLifecycle(WorkflowDispatcher dispatcher, ThreadFactory nflowThreadFactory, Environment env)
-
-
Method Details
-
getPhase
public int getPhase()- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceSmartLifecycle
-
start
public void start() -
pause
public void pause() -
resume
public void resume() -
isPaused
public boolean isPaused() -
isRunning
public boolean isRunning() -
stop
public void stop() -
stop
- Specified by:
stopin interfaceSmartLifecycle
-