Class ResumeConnectorHandlerBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.lifecycle.resume.ResumeConnectorHandlerBuilder
-
public class ResumeConnectorHandlerBuilder extends Object
Builder for theResumeConnectorHandler
.Allows for customization of the following handler components:
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResumeConnectorHandler
build()
Builds a new handler instance.ResumeConnectorHandlerBuilder
withCallback(ResumeConnectorCallback callback)
Sets the callback used to build the handler instance.ResumeConnectorHandlerBuilder
withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.ResumeConnectorHandlerBuilder
withStateValidator(ResumeConnectorStateValidator stateValidator)
Sets the state validator used to build the handler instance.
-
-
-
Method Detail
-
withStateValidator
public ResumeConnectorHandlerBuilder withStateValidator(ResumeConnectorStateValidator stateValidator)
Sets the state validator used to build the handler instance.- Parameters:
stateValidator
- connector state validator- Returns:
- this builder
-
withCallback
public ResumeConnectorHandlerBuilder withCallback(ResumeConnectorCallback callback)
Sets the callback used to build the handler instance.- Parameters:
callback
- resume connector callback- Returns:
- this builder
-
withErrorHelper
public ResumeConnectorHandlerBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Parameters:
errorHelper
- connector error helper- Returns:
- this builder
-
build
public ResumeConnectorHandler build()
Builds a new handler instance.- Returns:
- new handler instance
- Throws:
NullPointerException
- if any property for the new handler is null
-
-