Partager via


AllocationPolicy Class

public final class AllocationPolicy
extends ExpandableStringEnum<AllocationPolicy>

Defines values for AllocationPolicy.

Field Summary

Modifier and Type Field and Description
static final AllocationPolicy GEO_LATENCY

Static value GeoLatency for AllocationPolicy.

static final AllocationPolicy HASHED

Static value Hashed for AllocationPolicy.

static final AllocationPolicy STATIC

Static value Static for AllocationPolicy.

Constructor Summary

Constructor Description
AllocationPolicy()

Method Summary

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

Creates or finds a AllocationPolicy from its string representation.

static Collection<AllocationPolicy> values()

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

GEO_LATENCY

public static final AllocationPolicy GEO_LATENCY

Static value GeoLatency for AllocationPolicy.

HASHED

public static final AllocationPolicy HASHED

Static value Hashed for AllocationPolicy.

STATIC

public static final AllocationPolicy STATIC

Static value Static for AllocationPolicy.

Constructor Details

AllocationPolicy

public AllocationPolicy()

Method Details

fromString

public static AllocationPolicy fromString(String name)

Creates or finds a AllocationPolicy from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AllocationPolicy.

values

public static Collection values()

Returns:

known AllocationPolicy values.

Applies to