Class Dispatcher


  • public class Dispatcher
    extends Object
    Main task reactor task dispatcher.
    • Method Detail

      • from

        public static Dispatcher from​(Session session,
                                      Identifier instanceSchema)
        Create a new Dispatcher.
        Parameters:
        session - Snowpark session object
        instanceSchema - Task Reactor instance name
        Returns:
        a new dispatcher
      • execute

        public String execute()
        Executes the next dispatcher run.
        Returns:
        work items dispatching result
      • cancelOngoingExecution

        public void cancelOngoingExecution​(QueueItem queueItem)
        Cancels ongoing executions for items with the same resource id as a provided queue item.
        Parameters:
        queueItem - queue item