Class WorkflowLifecycle
- java.lang.Object
-
- io.nflow.engine.internal.executor.WorkflowLifecycle
-
- All Implemented Interfaces:
Lifecycle,Phased,SmartLifecycle
@Component @Singleton public class WorkflowLifecycle extends Object implements SmartLifecycle
-
-
Field Summary
-
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
-
Constructor Summary
Constructors Constructor Description WorkflowLifecycle(WorkflowDispatcher dispatcher, ThreadFactory nflowThreadFactory, Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPhase()booleanisAutoStartup()booleanisPaused()booleanisRunning()voidpause()voidresume()voidstart()voidstop()voidstop(Runnable callback)
-
-
-
Constructor Detail
-
WorkflowLifecycle
@Inject public WorkflowLifecycle(WorkflowDispatcher dispatcher, ThreadFactory nflowThreadFactory, Environment env)
-
-
Method Detail
-
getPhase
public int getPhase()
- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartupin interfaceSmartLifecycle
-
pause
public void pause()
-
resume
public void resume()
-
isPaused
public boolean isPaused()
-
stop
public void stop(Runnable callback)
- Specified by:
stopin interfaceSmartLifecycle
-
-