Class SchedulerTaskReactorOnIngestionFinishedCallback
- java.lang.Object
-
- com.snowflake.connectors.application.integration.SchedulerTaskReactorOnIngestionFinishedCallback
-
- All Implemented Interfaces:
OnIngestionFinishedCallback
public class SchedulerTaskReactorOnIngestionFinishedCallback extends Object implements OnIngestionFinishedCallback
Task reactor compatible implementation ofOnIngestionFinishedCallback
.
-
-
Constructor Summary
Constructors Constructor Description SchedulerTaskReactorOnIngestionFinishedCallback(OnIngestionFinishedCallback schedulerCallback)
Creates a newSchedulerTaskReactorOnIngestionFinishedCallback
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SchedulerTaskReactorOnIngestionFinishedCallback
getInstance(Session session)
Returns a new instance of the default callback implementation.void
onIngestionFinished(String ingestionProcessId, Variant metadata)
Method which is called when Task Reactor finishes an ingestion
-
-
-
Constructor Detail
-
SchedulerTaskReactorOnIngestionFinishedCallback
public SchedulerTaskReactorOnIngestionFinishedCallback(OnIngestionFinishedCallback schedulerCallback)
Creates a newSchedulerTaskReactorOnIngestionFinishedCallback
.- Parameters:
schedulerCallback
- scheduler callback for ingestion finish
-
-
Method Detail
-
onIngestionFinished
public void onIngestionFinished(String ingestionProcessId, Variant metadata)
Description copied from interface:OnIngestionFinishedCallback
Method which is called when Task Reactor finishes an ingestion- Specified by:
onIngestionFinished
in interfaceOnIngestionFinishedCallback
- Parameters:
ingestionProcessId
- id of a work item specified when the work item was inserted to the queuemetadata
- payload with additional information that can be shared between work items of the same type
-
getInstance
public static SchedulerTaskReactorOnIngestionFinishedCallback getInstance(Session session)
Returns a new instance of the default callback implementation.Default implementation of the callback uses a default implementation of
OnIngestionFinishedCallback
.- Parameters:
session
- Snowpark session object- Returns:
- a new callback instance
-
-