public class TakeModifiers extends Object
TakeModifiers
class provides static
methods and constants to decode Take
type modifiers. The sets of modifiers are represented as integers with distinct bit positions
representing different modifiers. These modifiers can be set only at the operation level
(e.g. using one of IJSpace
take/takeIfExists/takeMultiple/clear methods
with a modifiers parameter )
Modifier and Type | Field and Description |
---|---|
static int |
EVICT_ONLY
A modifier passed to take/clear operations.
The modifier will cause the eviction of entries matching the given template from cache. The entries will not be removed from the persistent layer. |
static int |
FIFO
Indicates the operation should comply with First-In-First-Out order.
|
static int |
FIFO_GROUPING_POLL
A modifier passed to take & read operations.
|
static int |
IGNORE_PARTIAL_FAILURE
A modifier passed to read multiple and take multiple operations.
|
static int |
MEMORY_ONLY_SEARCH
Search for matching entries in cache memory only (do not use the underlying EDS).
|
static int |
MVCC_REVERT_GENERATION |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEvictOnly(int mod)
Checks if the EVICT_ONLY bit was set for this modifier.
|
static boolean |
isFifo(int mod)
Checks if the FIFO bit was set for this modifier.
|
static boolean |
isFifoGroupingPoll(int mod)
Checks if the FIFO_GROUPING_POLL bit was set for this modifier.
|
static boolean |
isIgnorePartialFailure(int mod)
Checks if the IGNORE_PARTIAL_FAILURE bit was set for this modifier.
|
static boolean |
isMemoryOnlySearch(int mod)
Checks if the MEMORY_ONLY_SEARCH bit was set for this modifier.
|
static boolean |
isRevertGeneration(int mod) |
public static final int EVICT_ONLY
public static final int IGNORE_PARTIAL_FAILURE
TakeMultipleException
when not all of the requested number of entries are returned and one
or more cluster members are not available.public static final int FIFO
public static final int FIFO_GROUPING_POLL
SpaceFifoGroupingProperty
public static final int MEMORY_ONLY_SEARCH
public static final int MVCC_REVERT_GENERATION
public static boolean isEvictOnly(int mod)
mod
- a set of modifierstrue
if mod
includes the EVICT_ONLY
bit is set.public static boolean isIgnorePartialFailure(int mod)
mod
- a set of modifierstrue
if mod
includes the IGNORE_PARTIAL_FAILURE
bit is set.public static boolean isFifo(int mod)
mod
- a set of modifiersmod
includes the MATCH_BY_UID modifier;
false otherwise.public static boolean isFifoGroupingPoll(int mod)
mod
- a set of modifiersmod
includes the FIFO_GROUPING_POLL modifier;
false otherwise.public static boolean isMemoryOnlySearch(int mod)
mod
- a set of modifiersmod
includes the MEMORY_ONLY_SEARCH modifier;
false otherwise.public static boolean isRevertGeneration(int mod)
Copyright © GigaSpaces.