Interface NaruSessionListener


public interface NaruSessionListener
  • Method Details

    • onEventAppended

      void onEventAppended(NaruEvent newEvent)
    • sessionStarted

      void sessionStarted(NaruSession session)
    • sessionStopped

      void sessionStopped(NaruSession session)
    • onSessionReloaded

      void onSessionReloaded(NaruSession naruSession)
    • onTaskStatusChanged

      default void onTaskStatusChanged(NaruTask task, NaruTaskStatus oldStatus, NaruTaskStatus newStatus)
      Fired on every task status transition, including the transient READY->RUNNING and RUNNING->READY pair the scheduler performs around each tick. Listeners that care about task lifecycle should filter on the terminal states (DONE, FAILED, KILLED) rather than react to every edge.