public enum CacheMode extends Enum<CacheMode>
CacheConfiguration
and cannot be changed after cache has started.Enum Constant and Description |
---|
PARTITIONED
Specifies partitioned cache behaviour.
|
REPLICATED
Specifies fully replicated cache behavior.
|
Modifier and Type | Method and Description |
---|---|
byte |
code() |
static @Nullable CacheMode |
fromCode(int code)
Efficiently gets enumerated value from its code.
|
static byte |
toCode(@Nullable CacheMode mode) |
static CacheMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheMode REPLICATED
AffinityFunction
configuration.public static final CacheMode PARTITIONED
AffinityFunction
configuration.
Note that partitioned cache is always fronted by local
'near'
cache which stores most recent data. You
can configure the size of near cache via NearCacheConfiguration.getNearEvictionPolicyFactory()
configuration property.
public static CacheMode[] values()
for (CacheMode c : CacheMode.values()) System.out.println(c);
public static CacheMode 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 nullpublic byte code()
@Nullable public static @Nullable CacheMode fromCode(int code)
code
- Code.null
if an out of range.public static byte toCode(@Nullable @Nullable CacheMode mode)
mode
- Cache mode.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023