SmartLifecycle.stop

Indicates that a Lifecycle component must stop if it is currently running. <p>The provided callback is used by the {@link LifecycleProcessor} to support an ordered, and potentially concurrent, shutdown of all components having a common shutdown order value. The callback <b>must</b> be executed after the {@code SmartLifecycle} component does indeed stop. <p>The {@link LifecycleProcessor} will call <i>only</i> this variant of the {@code stop} method; i.e. {@link Lifecycle#stop()} will not be called for {@code SmartLifecycle} implementations unless explicitly delegated to within the implementation of this method. @see #stop() @see #getPhase()

  1. void stop(Runnable callback)
    interface SmartLifecycle
    void
    stop
    (
    Runnable callback
    )
  2. alias stop = Lifecycle.stop

Meta