Builder

Fluent builder for PrewarmingLiveModel, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sets keepWarmFor in milliseconds. Java cannot call keepWarmFor, whose JVM name is mangled because Duration is a value class.

Sets keepWarmFor in milliseconds; pass null to never replace spares that end or age out. The non-null overload is kept so Java int literals still compile.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sets maxSpareAge in milliseconds. Java cannot call maxSpareAge, whose JVM name is mangled because Duration is a value class.

Sets maxSpareAge in milliseconds; pass null so spares have no age limit. The non-null overload is kept so Java int literals still compile.

Link copied to clipboard
Link copied to clipboard

Sets minLifetimeForReplacement in milliseconds. Java cannot call minLifetimeForReplacement, whose JVM name is mangled because Duration is a value class.

fun minLifetimeForReplacementMillis(minLifetimeForReplacementMillis: Long?): PrewarmingLiveModel.Builder

Sets minLifetimeForReplacement in milliseconds; pass null to replace ended spares immediately while keepWarmFor allows. The non-null overload is kept so Java int literals still compile.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sets updateCheckWindow in milliseconds. Java cannot call updateCheckWindow, whose JVM name is mangled because Duration is a value class.

Sets updateCheckWindow in milliseconds, or to null (the default) to skip the update check. The non-null overload is kept so Java int literals still compile.