Package com.j_spaces.core.client
Class TakeModifiers
java.lang.Object
com.j_spaces.core.client.TakeModifiers
The
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 )
- Since:
- 8.0
- Author:
- Yechiel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA 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 final intIndicates the operation should comply with First-In-First-Out order.static final intA modifier passed to take & read operations.static final intA modifier passed to read multiple and take multiple operations.static final intSearch for matching entries in cache memory only (do not use the underlying EDS).static final int -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEvictOnly(int mod) Checks if the EVICT_ONLY bit was set for this modifier.static booleanisFifo(int mod) Checks if the FIFO bit was set for this modifier.static booleanisFifoGroupingPoll(int mod) Checks if the FIFO_GROUPING_POLL bit was set for this modifier.static booleanisIgnorePartialFailure(int mod) Checks if the IGNORE_PARTIAL_FAILURE bit was set for this modifier.static booleanisMemoryOnlySearch(int mod) Checks if the MEMORY_ONLY_SEARCH bit was set for this modifier.static booleanisRevertGeneration(int mod)
-
Field Details
-
EVICT_ONLY
public static final int EVICT_ONLYA 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.
Relevant for LRU cache policy only.
If a timeout parameter is specified it will be ignored with this modifier.- See Also:
-
IGNORE_PARTIAL_FAILURE
public static final int IGNORE_PARTIAL_FAILUREA modifier passed to read multiple and take multiple operations. The modifier will cause partial results to be returned instead of throwing operation specific exceptionTakeMultipleExceptionwhen not all of the requested number of entries are returned and one or more cluster members are not available.- See Also:
-
FIFO
public static final int FIFOIndicates the operation should comply with First-In-First-Out order.- See Also:
-
FIFO_GROUPING_POLL
public static final int FIFO_GROUPING_POLLA modifier passed to take & read operations. The modifier will cause a group fifo poll based on the passed template. The template must have a property marked with theSpaceFifoGroupingProperty- Since:
- 9.0.0
- See Also:
-
MEMORY_ONLY_SEARCH
public static final int MEMORY_ONLY_SEARCHSearch for matching entries in cache memory only (do not use the underlying EDS).- Since:
- 9.0.1
- See Also:
-
MVCC_REVERT_GENERATION
public static final int MVCC_REVERT_GENERATION- See Also:
-
-
Method Details
-
isEvictOnly
public static boolean isEvictOnly(int mod) Checks if the EVICT_ONLY bit was set for this modifier.- Parameters:
mod- a set of modifiers- Returns:
trueifmodincludes theEVICT_ONLYbit is set.
-
isIgnorePartialFailure
public static boolean isIgnorePartialFailure(int mod) Checks if the IGNORE_PARTIAL_FAILURE bit was set for this modifier.- Parameters:
mod- a set of modifiers- Returns:
trueifmodincludes theIGNORE_PARTIAL_FAILUREbit is set.
-
isFifo
public static boolean isFifo(int mod) Checks if the FIFO bit was set for this modifier.- Parameters:
mod- a set of modifiers- Returns:
- true if
modincludes the MATCH_BY_UID modifier; false otherwise.
-
isFifoGroupingPoll
public static boolean isFifoGroupingPoll(int mod) Checks if the FIFO_GROUPING_POLL bit was set for this modifier.- Parameters:
mod- a set of modifiers- Returns:
- true if
modincludes the FIFO_GROUPING_POLL modifier; false otherwise.
-
isMemoryOnlySearch
public static boolean isMemoryOnlySearch(int mod) Checks if the MEMORY_ONLY_SEARCH bit was set for this modifier.- Parameters:
mod- a set of modifiers- Returns:
- true if
modincludes the MEMORY_ONLY_SEARCH modifier; false otherwise. - Since:
- 9.0.1
-
isRevertGeneration
public static boolean isRevertGeneration(int mod)
-