IdlePolicy

Configuration that controls MicroVM auto-suspend and auto-resume behavior. Idle time is measured by inbound traffic through the MicroVM proxy endpoint — if no requests arrive within the configured duration, the MicroVM is suspended.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard
inline fun copy(block: IdlePolicy.Builder.() -> Unit = {}): IdlePolicy
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String