Interface EventloopService

  • All Known Implementing Classes:
    EventloopTaskScheduler

    public interface EventloopService
    This interface is for services that can be started and then stopped in the context of eventloop, so it works with Promise
    • Method Detail

      • getEventloop

        @NotNull
        @NotNull Eventloop getEventloop()
      • start

        @NotNull
        @NotNull Promise<?> start()
        Starts this component asynchronously. Callback completes immediately if the component is already running.
      • stop

        @NotNull
        @NotNull Promise<?> stop()
        Stops this component asynchronously. Callback completes immediately if the component is not running / already stopped.