RuleCacheBehavior Class

public final class RuleCacheBehavior
extends ExpandableStringEnum<RuleCacheBehavior>

Caching behavior for the requests.

Field Summary

Modifier and Type Field and Description
static final RuleCacheBehavior HONOR_ORIGIN

Static value HonorOrigin for RuleCacheBehavior.

static final RuleCacheBehavior OVERRIDE_ALWAYS

Static value OverrideAlways for RuleCacheBehavior.

static final RuleCacheBehavior OVERRIDE_IF_ORIGIN_MISSING

Static value OverrideIfOriginMissing for RuleCacheBehavior.

Constructor Summary

Constructor Description
RuleCacheBehavior()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuleCacheBehavior value.

Method Summary

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

Creates or finds a RuleCacheBehavior from its string representation.

static Collection<RuleCacheBehavior> values()

Gets known RuleCacheBehavior values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HONOR_ORIGIN

public static final RuleCacheBehavior HONOR_ORIGIN

Static value HonorOrigin for RuleCacheBehavior.

OVERRIDE_ALWAYS

public static final RuleCacheBehavior OVERRIDE_ALWAYS

Static value OverrideAlways for RuleCacheBehavior.

OVERRIDE_IF_ORIGIN_MISSING

public static final RuleCacheBehavior OVERRIDE_IF_ORIGIN_MISSING

Static value OverrideIfOriginMissing for RuleCacheBehavior.

Constructor Details

RuleCacheBehavior

@Deprecated
public RuleCacheBehavior()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuleCacheBehavior value.

Method Details

fromString

public static RuleCacheBehavior fromString(String name)

Creates or finds a RuleCacheBehavior from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RuleCacheBehavior.

values

public static Collection<RuleCacheBehavior> values()

Gets known RuleCacheBehavior values.

Returns:

known RuleCacheBehavior values.

Applies to