Interface ExecutorStrategies
-
public interface ExecutorStrategies
The strategy that defines whichCommandExecutor
implementation 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 ExecutorStrategies
getInstance(Session session, Identifier instanceName)
Returns a new instance of the defaultExecutorStrategies
implementation used by the Task Reactor.Optional<CommandExecutor>
getStrategy(Command.CommandType commandType)
Provides the proper implementation ofCommandExecutor
for the given value ofCommand.CommandType
-
-
-
Method Detail
-
getStrategy
Optional<CommandExecutor> getStrategy(Command.CommandType commandType)
Provides the proper implementation ofCommandExecutor
for 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 defaultExecutorStrategies
implementation used by the Task Reactor.- Parameters:
session
- Snowpark session objectinstanceName
- Task Reactor instance name- Returns:
- a new default commands executors strategy instance
-
-