接口 SmartLifecycle

    • 字段概要

      字段 
      修饰符和类型字段说明
      static intDEFAULT_PHASE
      The default phase for SmartLifecycle: Integer.MAX_VALUE.
    • 方法概要

      所有方法 实例方法 默认方法 
      修饰符和类型方法说明
      default intgetPhase()
      Return the phase that this lifecycle object is supposed to run in.
      default booleanisAutoStartup()
      Returns true if this Lifecycle component should get started automatically by the container at the time that the containing ApplicationContext gets refreshed.
      default voidstop​(Runnable callback)
      Indicates that a Lifecycle component must stop if it is currently running.