public enum GridClientCacheFlag extends Enum<GridClientCacheFlag>
Enum Constant and Description |
---|
KEEP_BINARIES
Disable deserialization of binary objects on get operations.
|
SKIP_STORE
Skips store, i.e. no read-through and no write-through behavior.
|
Modifier and Type | Field and Description |
---|---|
static int |
KEEP_BINARIES_MASK |
static int |
SKIP_STORE_MASK |
Modifier and Type | Method and Description |
---|---|
static int |
encodeCacheFlags(Collection<GridClientCacheFlag> flagSet)
Encodes cache flags to bit map.
|
static GridClientCacheFlag |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static Set<GridClientCacheFlag> |
parseCacheFlags(int cacheFlagsBits)
Retrieves cache flags from corresponding bits.
|
static GridClientCacheFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridClientCacheFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridClientCacheFlag SKIP_STORE
public static final GridClientCacheFlag KEEP_BINARIES
GridClientData.get(Object)
and GridClientData.getAll(Collection)
methods will return
instances of BinaryObject
class instead of user objects.
Use this flag if you don't have corresponding class on your client of
if you want to get access to some individual fields, but do not want to
fully deserialize the object.public static final int SKIP_STORE_MASK
public static final int KEEP_BINARIES_MASK
public static GridClientCacheFlag[] values()
for (GridClientCacheFlag c : GridClientCacheFlag.values()) System.out.println(c);
public static GridClientCacheFlag 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 static GridClientCacheFlag fromOrdinal(int ord)
ord
- Ordinal value.null
if ordinal out of range.public static int encodeCacheFlags(Collection<GridClientCacheFlag> flagSet)
flagSet
- Set of flags to be encoded.public static Set<GridClientCacheFlag> parseCacheFlags(int cacheFlagsBits)
cacheFlagsBits
- Integer representation of cache flags bit set.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021