Interface ExecutorStrategies
-
public interface ExecutorStrategiesThe strategy that defines whichCommandExecutorimplementation is responsible for execution of command of a particular type.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ExecutorStrategiesgetInstance(Session session, Identifier instanceName)Returns a new instance of the defaultExecutorStrategiesimplementation used by the Task Reactor.Optional<CommandExecutor>getStrategy(Command.CommandType commandType)Provides the proper implementation ofCommandExecutorfor the given value ofCommand.CommandType
-
-
-
Method Detail
-
getStrategy
Optional<CommandExecutor> getStrategy(Command.CommandType commandType)
Provides the proper implementation ofCommandExecutorfor the given value ofCommand.CommandType- Parameters:
commandType- command type- Returns:
- command executor for given command type
-
getInstance
static ExecutorStrategies getInstance(Session session, Identifier instanceName)
Returns a new instance of the defaultExecutorStrategiesimplementation used by the Task Reactor.- Parameters:
session- Snowpark session objectinstanceName- Task Reactor instance name- Returns:
- a new default commands executors strategy instance
-
-