Condividi tramite


SiteUpdateStrategyType Class

public final class SiteUpdateStrategyType
extends ExpandableStringEnum<SiteUpdateStrategyType>

Function app site update strategy type. Available options: Recreate, RollingUpdate.

Field Summary

Modifier and Type Field and Description
static final SiteUpdateStrategyType RECREATE

If the app is under load and a deployment or site state update occurs, all pods will be removed and will need to be Recreated all at once.

static final SiteUpdateStrategyType ROLLING_UPDATE

If the app is under load and a deployment or site state update occurs, pods will be drained in batches and gradually replaced, thus minimizing impact to throughput.

Constructor Summary

Constructor Description
SiteUpdateStrategyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SiteUpdateStrategyType value.

Method Summary

Modifier and Type Method and Description
static SiteUpdateStrategyType fromString(String name)

Creates or finds a SiteUpdateStrategyType from its string representation.

static Collection<SiteUpdateStrategyType> values()

Gets known SiteUpdateStrategyType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

RECREATE

public static final SiteUpdateStrategyType RECREATE

If the app is under load and a deployment or site state update occurs, all pods will be removed and will need to be Recreated all at once. This is the default behavior.

ROLLING_UPDATE

public static final SiteUpdateStrategyType ROLLING_UPDATE

If the app is under load and a deployment or site state update occurs, pods will be drained in batches and gradually replaced, thus minimizing impact to throughput.

Constructor Details

SiteUpdateStrategyType

@Deprecated
public SiteUpdateStrategyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SiteUpdateStrategyType value.

Method Details

fromString

public static SiteUpdateStrategyType fromString(String name)

Creates or finds a SiteUpdateStrategyType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SiteUpdateStrategyType.

values

public static Collection<SiteUpdateStrategyType> values()

Gets known SiteUpdateStrategyType values.

Returns:

known SiteUpdateStrategyType values.

Applies to