Package com.j_spaces.core.client
Class Modifiers
java.lang.Object
com.j_spaces.core.client.Modifiers
The Modifier class provides
static methods and constants to decode available
GigaSpaces types modifiers. The sets of modifiers are represented as integers with distinct bit
positions representing different modifiers.- Since:
- 5.1
- Version:
- 1.0
- Author:
- Igor Goldenberg
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInternal API Determines if an update operation should be replicated only to backup (only write and take supported, only write and clear tested) used in horizontal scale featurestatic final intIf set, the Dirty read option allows you to retrieve the latest state of the object before it has been committed.static final intAllows the query to fill the Explain plan without returning results and scanning the indexesstatic final intA modifier passed to take operations.static final intProvides an Exclusive Read lock.static final intDetermines if an update operation notification should return the previous entry.static final intAn internal usage to get indication whether the desired operation represents FIFO.static final intA modifier passed to take & read operations.static final intRead any matching object from the space, returningnullif there currently is none.static final intA modifier passed to read multiple and take multiple operations.static final intstatic final intTheintvalue required matching to be done only by UID if provided (not in POJO) modifier.static final intSearch for proper entries in cache memory only (dont use the underlying EDS).static final intRevert generation for MVCC spacestatic final intDeprecated.Since 9.0.0static final intDeprecated.static final intThis modifier represents NONE modifier without any bit flag.static final intThis modifier is relevant only for remote space.static final intFor internal use.static final intIf set, null values in the updated entry are treated as "leave as it is".static final intIf set, provides read_committed isolation per the SPECIFIC read operation read_committed can also set , in the traditional way, per created transactions using the proxy level setTransactionIsolationLevel() API effected operations: Operations: Read, readIfExists, readMultiplestatic final intIf set, provides repeatable_read isolation per the SPECIFIC read operation repeatable_read can also set , in the traditional way, per created transactions using the proxy level setTransactionIsolationLevel() API effected operations: Operations: Read, readIfExists, readMultiplestatic final intIf set, The match Collection will contain an instance of Entry UID of read or take operations.static final intDetermines if a change operation should return detailed results.static final intInternal property.static final intDetermines if an update operation should return the previous entry in the lease.static final intDetermines if an update operation notification should return the previous entry.static final intInternal property.static final intIndicates operation should run directly on i/o thread, instead of being submitted to the operations thread pool.static final intDeprecated.This is the default behavior, for old behavior useIGNORE_PARTIAL_FAILUREstatic final intIf set, performs a regular update operation.static final intTheintvalue representing theUPDATE_OR_WRITEmodifier.static final intPerforms a regular write operation. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NONE
public static final int NONEThis modifier represents NONE modifier without any bit flag.- See Also:
-
ONE_WAY
public static final int ONE_WAYThis modifier is relevant only for remote space. If set, using this modifier the client side will not be blocked while space' operation will be processed. The client thread will be released right away when the method request-call is transfered to the server. Notice: The return value is alwaysnull. Operations: Any- See Also:
-
NO_RETURN_VALUE
Deprecated.Since 9.0.0If set, the write or update operations will returnnullinstead of the lease object (write) or previous value (update). Using this option will improve application write operation performance - null return value yields less network traffic and less memory consumption. Note: This modifier does not replace ONE_WAY modifier- See Also:
-
WRITE
public static final int WRITEPerforms a regular write operation. Operations: Write- See Also:
-
UPDATE
public static final int UPDATEIf set, performs a regular update operation. In case the Entry UID doesn't exists in the space use the following modifier combination: UPDATE | WRITE | update the entry if exists or write if absent. Operations: Update- See Also:
-
PARTIAL_UPDATE
public static final int PARTIAL_UPDATEIf set, null values in the updated entry are treated as "leave as it is". Operations: Update- See Also:
-
DIRTY_READ
public static final int DIRTY_READIf set, the Dirty read option allows you to retrieve the latest state of the object before it has been committed. Operations: Read, Take, Update- See Also:
-
RUN_ON_IO_THREAD
public static final int RUN_ON_IO_THREADIndicates operation should run directly on i/o thread, instead of being submitted to the operations thread pool. This is useful for short, non-blocking operations (e.g. readById), but risky for long or non-blocking operations. NOTE: This is an experimental API, subject to breaking changes in future releases.- Since:
- 16.0
- See Also:
-
RESERVED_RETURN_ONLY_UID
public static final int RESERVED_RETURN_ONLY_UIDIf set, The match Collection will contain an instance of Entry UID of read or take operations. If set for write operation, the return value will be the written UID and not the Lease instance. Operations: Write, Read, Take- See Also:
-
IF_EXISTS
public static final int IF_EXISTSRead any matching object from the space, returningnullif there currently is none. Matching and timeouts are done as inread, except that blocking in this call is done only if necessary to wait for transactional state to settle. Operations: Read, Take- Since:
- 10.0
- See Also:
-
EXCLUSIVE_READ_LOCK
public static final int EXCLUSIVE_READ_LOCKProvides an Exclusive Read lock.- See Also:
-
MVCC_REVERT_GENERATION
public static final int MVCC_REVERT_GENERATIONRevert generation for MVCC space- See Also:
-
FIFO
public static final int FIFOAn internal usage to get indication whether the desired operation represents FIFO. Operations: Any- See Also:
-
UPDATE_OR_WRITE
public static final int UPDATE_OR_WRITETheintvalue representing theUPDATE_OR_WRITEmodifier. When set: if the entry to be updated does not reside in the space, a new entry is written- See Also:
-
READ_COMMITTED
public static final int READ_COMMITTEDIf set, provides read_committed isolation per the SPECIFIC read operation read_committed can also set , in the traditional way, per created transactions using the proxy level setTransactionIsolationLevel() API effected operations: Operations: Read, readIfExists, readMultiple- See Also:
-
MATCH_BY_ID
public static final int MATCH_BY_IDTheintvalue required matching to be done only by UID if provided (not in POJO) modifier.- See Also:
-
THROW_PARTIAL_FAILURE
Deprecated.This is the default behavior, for old behavior useIGNORE_PARTIAL_FAILUREA modifier passed to read multiple and take multiple operations. The modifier will cause an operation specific exceptionReadMultipleException,TakeMultipleExceptionto be thrown when not all of the requested number of entries are returned and one or more cluster members are not available.- 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 exceptionReadMultipleException,TakeMultipleExceptionwhen not all of the requested number of entries are returned and one or more cluster members are not available.- Since:
- 7.1
- See Also:
-
EVICT_ONLY
public static final int EVICT_ONLYA modifier passed to take operations. The modifier will cause eviction from cache of the selected entries- relevant for LRU cache policy only- Since:
- 8.0
- See Also:
-
NO_WRITE_LEASE
Deprecated.Deprecated since 9.0.0.- See Also:
-
OVERRIDE_VERSION
public static final int OVERRIDE_VERSIONFor internal use.- 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:
-
RETURN_STRING_PROPERTIES
public static final int RETURN_STRING_PROPERTIESInternal property. Used mostly by the data console to fetch data without loading the data classes.- Since:
- 9.0.0
- See Also:
-
RETURN_DOCUMENT_PROPERTIES
public static final int RETURN_DOCUMENT_PROPERTIESInternal property. Used mostly by the data console to fetch data asSpaceDocument, without loading the data classes.- Since:
- 9.0.0
- See Also:
-
RETURN_PREV_ON_UPDATE
public static final int RETURN_PREV_ON_UPDATEDetermines if an update operation should return the previous entry in the lease.- Since:
- 9.0.1
- See Also:
-
MEMORY_ONLY_SEARCH
public static final int MEMORY_ONLY_SEARCHSearch for proper entries in cache memory only (dont use the underlying EDS).- Since:
- 9.0.1
- See Also:
-
RETURN_DETAILED_CHANGE_RESULT
public static final int RETURN_DETAILED_CHANGE_RESULTDetermines if a change operation should return detailed results.- Since:
- 9.1
- See Also:
-
LOG_SCANNED_ENTRIES_COUNT
public static final int LOG_SCANNED_ENTRIES_COUNT- See Also:
-
RETURN_PREV_ON_UPDATE_NOTIFY
public static final int RETURN_PREV_ON_UPDATE_NOTIFYDetermines if an update operation notification should return the previous entry.- Since:
- 10.1
- See Also:
-
EXPLAIN_PLAN
public static final int EXPLAIN_PLANDetermines if an update operation notification should return the previous entry.- Since:
- 12.0.1
- See Also:
-
BACKUP_ONLY
public static final int BACKUP_ONLYInternal API Determines if an update operation should be replicated only to backup (only write and take supported, only write and clear tested) used in horizontal scale feature- Since:
- 15.5.0
- See Also:
-
DRY_RUN
public static final int DRY_RUNAllows the query to fill the Explain plan without returning results and scanning the indexes- Since:
- 16.0
- See Also:
-
REPEATABLE_READ
public static final int REPEATABLE_READIf set, provides repeatable_read isolation per the SPECIFIC read operation repeatable_read can also set , in the traditional way, per created transactions using the proxy level setTransactionIsolationLevel() API effected operations: Operations: Read, readIfExists, readMultiple- See Also:
-
-
Constructor Details
-
Modifiers
public Modifiers()
-
-
Method Details
-
contains
public static boolean contains(int modifiers, int setting) -
add
public static int add(int modifiers, int setting) -
remove
public static int remove(int modifiers, int setting)
-