Class ResumeInstanceHandler


  • public class ResumeInstanceHandler
    extends Object
    Handler for the Task Reactor instance resuming process. A new instance of the handler must be created using the builder.
    • Method Detail

      • resumeInstance

        public static Variant resumeInstance​(Session session,
                                             String instanceSchema)
        Default handler method for the TASK_REACTOR.RESUME_INSTANCE procedure.

        It resumes the instance dispatcher task and inserts the RESUME_INSTANCE command into the Task Reactor command queue.

        Parameters:
        session - Snowpark session object
        instanceSchema - task reactor instance name
        Returns:
        a variant representing the ConnectorResponse returned by resumeInstance
      • resumeInstance

        public ConnectorResponse resumeInstance​(Identifier instanceSchema)
        Executes the main logic of the handler, with logging using withExceptionLogging.
        Parameters:
        instanceSchema - Task Reactor instance name
        Returns:
        a response with the code OK if the execution was successful, otherwise a response with an error code and an error message