Class AbstractLifecycleExecutor
- java.lang.Object
-
- org.apache.shardingsphere.data.pipeline.api.executor.AbstractLifecycleExecutor
-
- All Implemented Interfaces:
Runnable,LifecycleExecutor
public abstract class AbstractLifecycleExecutor extends Object implements LifecycleExecutor
Abstract lifecycle executor.
-
-
Constructor Summary
Constructors Constructor Description AbstractLifecycleExecutor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoStop()protected booleanisRunning()voidrun()protected abstract voidrunBlocking()Run blocking.voidstart()Start run execute.voidstop()Stop running execute.
-
-
-
Method Detail
-
isRunning
protected boolean isRunning()
-
start
public final void start()
Description copied from interface:LifecycleExecutorStart run execute.- Specified by:
startin interfaceLifecycleExecutor
-
runBlocking
protected abstract void runBlocking()
Run blocking.
-
stop
public final void stop()
Description copied from interface:LifecycleExecutorStop running execute.- Specified by:
stopin interfaceLifecycleExecutor
-
doStop
protected abstract void doStop() throws SQLException- Throws:
SQLException
-
-