Class TaskReactorInstanceActionExecutor
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.TaskReactorInstanceActionExecutor
-
public class TaskReactorInstanceActionExecutor extends Object
Utility class for executing actions on all Task Reactor instances.
-
-
Constructor Summary
Constructors Constructor Description TaskReactorInstanceActionExecutor(TaskReactorExistenceVerifier existenceVerifier, InstanceRegistryRepository instanceRegistryRepository)
Creates a newTaskReactorInstanceActionExecutor
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToAllInitializedTaskReactorInstances(Consumer<Identifier> action)
Executes the specified actions for all initialized Task Reactor instances.static TaskReactorInstanceActionExecutor
getInstance(Session session)
Returns a new instance of the default executor implementation.
-
-
-
Constructor Detail
-
TaskReactorInstanceActionExecutor
public TaskReactorInstanceActionExecutor(TaskReactorExistenceVerifier existenceVerifier, InstanceRegistryRepository instanceRegistryRepository)
Creates a newTaskReactorInstanceActionExecutor
.- Parameters:
existenceVerifier
- Task Reactor existence verifierinstanceRegistryRepository
- Task Reactor instance registry repository
-
-
Method Detail
-
getInstance
public static TaskReactorInstanceActionExecutor getInstance(Session session)
Returns a new instance of the default executor implementation.- Parameters:
session
- Snowpark session object- Returns:
- a new executor instance
-
applyToAllInitializedTaskReactorInstances
public void applyToAllInitializedTaskReactorInstances(Consumer<Identifier> action)
Executes the specified actions for all initialized Task Reactor instances.- Parameters:
action
- action to be executed
-
-