Interface LifecycleService

  • All Known Implementing Classes:
    LifecycleServiceImpl

    public interface LifecycleService
    Responsible for starting/stopping the application
    Author:
    James Roper
    • Method Detail

      • start

        void start()
        Start the application
      • stop

        void stop()
        Stop the application
      • isStarted

        boolean isStarted()
        Whether the application is started
        Returns:
        True if the application is started
      • getState

        State getState()
        Get the state of the lifecycle
        Returns:
        The state
      • getUpTime

        long getUpTime()
        Get the time that the service has been up for
        Returns:
        The time that the service has been up for