Class Dispatcher
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.Dispatcher
-
public class Dispatcher extends Object
Main task reactor task dispatcher.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelOngoingExecution(QueueItem queueItem)
Cancels ongoing executions for items with the same resource id as a provided queue item.String
execute()
Executes the next dispatcher run.static Dispatcher
from(Session session, Identifier instanceSchema)
Create a newDispatcher
.
-
-
-
Method Detail
-
from
public static Dispatcher from(Session session, Identifier instanceSchema)
Create a newDispatcher
.- Parameters:
session
- Snowpark session objectinstanceSchema
- 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
-
-