Class RunSchedulerIterationHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.scheduler.RunSchedulerIterationHandlerBuilder
-
public class RunSchedulerIterationHandlerBuilder extends Object
Builder for theRunSchedulerIterationHandler
.Allows for customization of the following handler components:
-
-
Constructor Summary
Constructors Constructor Description RunSchedulerIterationHandlerBuilder(Session session)
Creates a newRunSchedulerIterationHandlerBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunSchedulerIterationHandler
build()
Builds a new handler instance.RunSchedulerIterationHandlerBuilder
withCallback(OnIngestionScheduledCallback callback)
Sets the callback used to build the handler instance.RunSchedulerIterationHandlerBuilder
withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.
-
-
-
Constructor Detail
-
RunSchedulerIterationHandlerBuilder
public RunSchedulerIterationHandlerBuilder(Session session)
Creates a newRunSchedulerIterationHandlerBuilder
.The properties of this builder are initialised with:
- a default implementation of
OnIngestionScheduledCallback
ConnectorErrorHelper
built usingbuildDefault
- Parameters:
session
- Snowpark session object- Throws:
NullPointerException
- if the provided session object is null
- a default implementation of
-
-
Method Detail
-
withCallback
public RunSchedulerIterationHandlerBuilder withCallback(OnIngestionScheduledCallback callback)
Sets the callback used to build the handler instance.- Parameters:
callback
- on ingestion scheduled callback- Returns:
- this builder
-
withErrorHelper
public RunSchedulerIterationHandlerBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Parameters:
errorHelper
- connector error helper- Returns:
- this builder
-
build
public RunSchedulerIterationHandler build()
Builds a new handler instance.- Returns:
- new handler instance
- Throws:
NullPointerException
- if any property for the new handler is null
-
-