CacheBehavior Class

public final class CacheBehavior
extends ExpandableStringEnum<CacheBehavior>

Caching behavior for the requests.

Field Summary

Modifier and Type Field and Description
static final CacheBehavior BYPASS_CACHE

Static value BypassCache for CacheBehavior.

static final CacheBehavior OVERRIDE

Static value Override for CacheBehavior.

static final CacheBehavior SET_IF_MISSING

Static value SetIfMissing for CacheBehavior.

Constructor Summary

Constructor Description
CacheBehavior()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CacheBehavior value.

Method Summary

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

Creates or finds a CacheBehavior from its string representation.

static Collection<CacheBehavior> values()

Gets known CacheBehavior values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BYPASS_CACHE

public static final CacheBehavior BYPASS_CACHE

Static value BypassCache for CacheBehavior.

OVERRIDE

public static final CacheBehavior OVERRIDE

Static value Override for CacheBehavior.

SET_IF_MISSING

public static final CacheBehavior SET_IF_MISSING

Static value SetIfMissing for CacheBehavior.

Constructor Details

CacheBehavior

@Deprecated
public CacheBehavior()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CacheBehavior value.

Method Details

fromString

public static CacheBehavior fromString(String name)

Creates or finds a CacheBehavior from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding CacheBehavior.

values

public static Collection<CacheBehavior> values()

Gets known CacheBehavior values.

Returns:

known CacheBehavior values.

Applies to