Class AbstractLifecycle

java.lang.Object
cn.sliew.carp.framework.queue.kekio.AbstractLifecycle
All Implemented Interfaces:
org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
AbstractQueue

public abstract class AbstractLifecycle extends Object implements org.springframework.context.SmartLifecycle
  • Field Summary

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
    protected abstract void
     
    boolean
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.SmartLifecycle

    getPhase, isAutoStartup, stop
  • Constructor Details

    • AbstractLifecycle

      public AbstractLifecycle()
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • doStart

      protected abstract void doStart() throws Exception
      Throws:
      Exception
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • doStop

      protected abstract void doStop() throws Exception
      Throws:
      Exception
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle