Class TaskReactorOnIngestionScheduledCallback<I,M,C,D,R extends ResourceIngestionDefinition<I,M,C,D>>
- java.lang.Object
-
- com.snowflake.connectors.application.integration.TaskReactorOnIngestionScheduledCallback<I,M,C,D,R>
-
- All Implemented Interfaces:
OnIngestionScheduledCallback
public class TaskReactorOnIngestionScheduledCallback<I,M,C,D,R extends ResourceIngestionDefinition<I,M,C,D>> extends Object implements OnIngestionScheduledCallback
Task reactor compatible implementation ofOnIngestionScheduledCallback
.
-
-
Constructor Summary
Constructors Constructor Description TaskReactorOnIngestionScheduledCallback(IngestionProcessRepository ingestionProcessRepository, ResourceIngestionDefinitionRepository<R> resourceIngestionDefinitionRepository, WorkItemQueue workItemQueue)
Creates a newTaskReactorOnIngestionScheduledCallback
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <I,M,C,D,R extends ResourceIngestionDefinition<I,M,C,D>>
TaskReactorOnIngestionScheduledCallback<I,M,C,D,R>getInstance(Session session, Identifier taskReactorName, Class<R> resourceClass)
Returns a new instance of the default callback implementation.void
onIngestionScheduled(List<String> processIds)
Action executed when the next scheduler iteration is run.
-
-
-
Constructor Detail
-
TaskReactorOnIngestionScheduledCallback
public TaskReactorOnIngestionScheduledCallback(IngestionProcessRepository ingestionProcessRepository, ResourceIngestionDefinitionRepository<R> resourceIngestionDefinitionRepository, WorkItemQueue workItemQueue)
Creates a newTaskReactorOnIngestionScheduledCallback
.- Parameters:
ingestionProcessRepository
- ingestion process repositoryresourceIngestionDefinitionRepository
- resource ingestion definition repositoryworkItemQueue
- work item queue repository
-
-
Method Detail
-
onIngestionScheduled
public void onIngestionScheduled(List<String> processIds)
Description copied from interface:OnIngestionScheduledCallback
Action executed when the next scheduler iteration is run.- Specified by:
onIngestionScheduled
in interfaceOnIngestionScheduledCallback
- Parameters:
processIds
- ingestion process ids
-
getInstance
public static <I,M,C,D,R extends ResourceIngestionDefinition<I,M,C,D>> TaskReactorOnIngestionScheduledCallback<I,M,C,D,R> getInstance(Session session, Identifier taskReactorName, Class<R> resourceClass)
Returns a new instance of the default callback implementation.Default implementation of the creator uses:
- a default implementation of
IngestionProcessRepository
- a default implementation of
ResourceIngestionDefinitionRepository
- a default implementation of
WorkItemQueue
- Type Parameters:
I
- resource id class, containing properties which identify the resource in the source systemM
- resource metadata class, containing additional properties which identify the resource in the source system. The properties can be fetched automatically or calculated by the connectorC
- custom ingestion configuration class, containing custom ingestion propertiesD
- destination configuration class, containing properties describing where the ingested data should be storedR
- ingested resource definition class- Parameters:
session
- Snowpark session objecttaskReactorName
- task reactor instance nameresourceClass
- class of the ingested resource definition- Returns:
- a new callback instance
- a default implementation of
-
-