public enum GridCacheDistributionMode extends Enum<GridCacheDistributionMode>
Partitioned distribution mode can be configured via GridCacheConfiguration.getDistributionMode()
configuration property.
| Enum Constant and Description |
|---|
CLIENT_ONLY
Mode in which local node does not cache any data and communicates with other cache nodes
via remote calls.
|
NEAR_ONLY
Mode in which local node will not be either primary or backup node for any keys, but will cache
recently accessed keys in a smaller near cache.
|
NEAR_PARTITIONED
Mode in which local node may store primary and/or backup keys, and also will cache recently accessed keys.
|
PARTITIONED_ONLY
Mode in which local node may store primary or backup keys, but does not cache recently accessed keys
in near cache.
|
| Modifier and Type | Method and Description |
|---|---|
static GridCacheDistributionMode |
fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.
|
static GridCacheDistributionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridCacheDistributionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridCacheDistributionMode CLIENT_ONLY
public static final GridCacheDistributionMode NEAR_ONLY
public static final GridCacheDistributionMode NEAR_PARTITIONED
public static final GridCacheDistributionMode PARTITIONED_ONLY
public static GridCacheDistributionMode[] values()
for (GridCacheDistributionMode c : GridCacheDistributionMode.values()) System.out.println(c);
public static GridCacheDistributionMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null@Nullable public static GridCacheDistributionMode fromOrdinal(byte ord)
ord - Ordinal value.null if ordinal out of range.
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014