Interface MicrovmHooks.Builder

  • Method Details

    • run

      The path of the hook invoked when the MicroVM starts running.

      Parameters:
      run - The path of the hook invoked when the MicroVM starts running.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • run

      The path of the hook invoked when the MicroVM starts running.

      Parameters:
      run - The path of the hook invoked when the MicroVM starts running.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • runTimeoutInSeconds

      MicrovmHooks.Builder runTimeoutInSeconds(Integer runTimeoutInSeconds)

      The maximum time in seconds for the run hook to complete.

      Parameters:
      runTimeoutInSeconds - The maximum time in seconds for the run hook to complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resume

      MicrovmHooks.Builder resume(String resume)

      The path of the hook invoked when the MicroVM resumes from a suspended state.

      Parameters:
      resume - The path of the hook invoked when the MicroVM resumes from a suspended state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resume

      The path of the hook invoked when the MicroVM resumes from a suspended state.

      Parameters:
      resume - The path of the hook invoked when the MicroVM resumes from a suspended state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resumeTimeoutInSeconds

      MicrovmHooks.Builder resumeTimeoutInSeconds(Integer resumeTimeoutInSeconds)

      The maximum time in seconds for the resume hook to complete.

      Parameters:
      resumeTimeoutInSeconds - The maximum time in seconds for the resume hook to complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suspend

      MicrovmHooks.Builder suspend(String suspend)

      The path of the hook invoked when the MicroVM is suspended.

      Parameters:
      suspend - The path of the hook invoked when the MicroVM is suspended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • suspend

      MicrovmHooks.Builder suspend(HookState suspend)

      The path of the hook invoked when the MicroVM is suspended.

      Parameters:
      suspend - The path of the hook invoked when the MicroVM is suspended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • suspendTimeoutInSeconds

      MicrovmHooks.Builder suspendTimeoutInSeconds(Integer suspendTimeoutInSeconds)

      The maximum time in seconds for the suspend hook to complete.

      Parameters:
      suspendTimeoutInSeconds - The maximum time in seconds for the suspend hook to complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • terminate

      MicrovmHooks.Builder terminate(String terminate)

      The path of the hook invoked when the MicroVM is terminated.

      Parameters:
      terminate - The path of the hook invoked when the MicroVM is terminated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • terminate

      MicrovmHooks.Builder terminate(HookState terminate)

      The path of the hook invoked when the MicroVM is terminated.

      Parameters:
      terminate - The path of the hook invoked when the MicroVM is terminated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • terminateTimeoutInSeconds

      MicrovmHooks.Builder terminateTimeoutInSeconds(Integer terminateTimeoutInSeconds)

      The maximum time in seconds for the terminate hook to complete.

      Parameters:
      terminateTimeoutInSeconds - The maximum time in seconds for the terminate hook to complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.