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 Details

    • AbstractLifecycleExecutor

      public AbstractLifecycleExecutor()
  • Method Details

    • start

      public void start()
      Description copied from interface: LifecycleExecutor
      Start run execute.
      Specified by:
      start in interface LifecycleExecutor
    • doStart

      protected abstract void doStart()
    • stop

      public final void stop()
      Description copied from interface: LifecycleExecutor
      Stop running execute.
      Specified by:
      stop in interface LifecycleExecutor
    • doStop

      protected abstract void doStop()
    • run

      public final void run()
      Specified by:
      run in interface Runnable