Interface IdlePolicy.Builder

  • Method Details

    • maxIdleDurationSeconds

      IdlePolicy.Builder maxIdleDurationSeconds(Integer maxIdleDurationSeconds)

      The maximum time in seconds that a MicroVM can remain idle before it is automatically suspended.

      Parameters:
      maxIdleDurationSeconds - The maximum time in seconds that a MicroVM can remain idle before it is automatically suspended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suspendedDurationSeconds

      IdlePolicy.Builder suspendedDurationSeconds(Integer suspendedDurationSeconds)

      The maximum time in seconds that a MicroVM can remain suspended before it is automatically terminated.

      Parameters:
      suspendedDurationSeconds - The maximum time in seconds that a MicroVM can remain suspended before it is automatically terminated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • autoResumeEnabled

      IdlePolicy.Builder autoResumeEnabled(Boolean autoResumeEnabled)

      Indicates whether the MicroVM automatically resumes when it receives a request while suspended.

      Parameters:
      autoResumeEnabled - Indicates whether the MicroVM automatically resumes when it receives a request while suspended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.