Interface LifeCycle

    • Method Detail

      • isRunning

        boolean isRunning()
        Deprecated.
        Returns:
        true if the component is starting or has been started.
      • isStarted

        boolean isStarted()
        Deprecated.
        Returns:
        true if the component has been started.
        See Also:
        start(), isStarting()
      • isStarting

        boolean isStarting()
        Deprecated.
        Returns:
        true if the component is starting.
        See Also:
        isStarted()
      • isStopping

        boolean isStopping()
        Deprecated.
        Returns:
        true if the component is stopping.
        See Also:
        isStopped()
      • isStopped

        boolean isStopped()
        Deprecated.
        Returns:
        true if the component has been stopped.
        See Also:
        stop(), isStopping()
      • isFailed

        boolean isFailed()
        Deprecated.
        Returns:
        true if the component has failed to start or has failed to stop.
      • addLifeCycleListener

        void addLifeCycleListener​(LifeCycle.Listener listener)
        Deprecated.
      • removeLifeCycleListener

        void removeLifeCycleListener​(LifeCycle.Listener listener)
        Deprecated.
      • start

        static void start​(Object object)
        Deprecated.
        Utility to start an object if it is a LifeCycle and to convert any exception thrown to a RuntimeException
        Parameters:
        object - The instance to start.
        Throws:
        RuntimeException - if the call to start throws an exception.
      • stop

        static void stop​(Object object)
        Deprecated.
        Utility to stop an object if it is a LifeCycle and to convert any exception thrown to a RuntimeException
        Parameters:
        object - The instance to stop.
        Throws:
        RuntimeException - if the call to stop throws an exception.