Interface IService

    • Method Detail

      • stop

        void stop()
        Stop current service. If current service uses thread or thread pool, current service should guarantee to putBack thread or thread pool.
      • waitAndStop

        default void waitAndStop​(long milliseconds)
      • getID

        ServiceType getID()
        Get the name of the the service.
        Returns:
        current service name