|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gigaspaces.client.SpaceProxyOperationModifiers com.gigaspaces.client.IsolationLevelModifiers com.gigaspaces.client.ReadModifiers
public class ReadModifiers
Provides modifiers to customize the behavior of read operations.
Field Summary | |
---|---|
static ReadModifiers |
DIRTY_READ
When a search for matching entries encounters an entry locked under a different uncommitted transaction, the lock is ignored and matching is performed on the uncommitted state. |
static ReadModifiers |
EXCLUSIVE_READ_LOCK
The resulting entries are locked, blocking update/remove from other transactions. |
static ReadModifiers |
FIFO
Search for matching entries using First-In-First-Out order. |
static ReadModifiers |
FIFO_GROUPING_POLL
Search for matching entries in the FIFO group indicated in the template. |
static ReadModifiers |
IGNORE_PARTIAL_FAILURE
If one or more partitions are not available during the operation, ignore them and return partial results based on the available partitions (instead of throwing an ReadMultipleException which contains the partial results, which is the default behavior). |
static ReadModifiers |
MEMORY_ONLY_SEARCH
Search for matching entries in cache memory only (do not use the underlying EDS). |
static ReadModifiers |
NONE
Empty - use operation default behavior. |
static ReadModifiers |
READ_COMMITTED
When a search for matching entries encounters an entry locked under a different uncommitted transaction, the lock is honored and matching is performed on the committed state. |
static ReadModifiers |
REPEATABLE_READ
When a search for matching entries encounters an entry locked under a different uncommitted transaction, the lock is honored and the entry is skipped (if the operation is invoked with a timeout it will block until the entry will be released or the timeout expires). |
Constructor Summary | |
---|---|
ReadModifiers()
|
|
ReadModifiers(ReadModifiers... modifiers)
Creates a new modifiers from the specified modifiers. |
|
ReadModifiers(ReadModifiers modifiers1,
ReadModifiers modifiers2)
Creates a new modifiers from the specified modifiers. |
|
ReadModifiers(ReadModifiers modifiers1,
ReadModifiers modifiers2,
ReadModifiers modifiers3)
Creates a new modifiers from the specified modifiers. |
Method Summary | |
---|---|
ReadModifiers |
add(ReadModifiers modifiers)
Creates a new modifiers instance which is a union of the specified modifiers and this instance. |
boolean |
contains(ReadModifiers modifiers)
Checks if the specified modifier is set. |
protected ReadModifiers |
create(int modifiers)
|
protected Map<Integer,SpaceProxyOperationModifiers> |
getCache()
|
boolean |
isExclusiveReadLock()
Checks if this instance contains the EXCLUSIVE_READ_LOCK setting. |
boolean |
isFifo()
Checks if this instance contains the FIFO setting. |
boolean |
isFifoGroupingPoll()
Checks if this instance contains the FIFO_GROUPING_POLL setting. |
boolean |
isIgnorePartialFailure()
Checks if this instance contains the IGNORE_PARTIAL_FAILURE setting. |
boolean |
isMemoryOnlySearch()
Checks if this instance contains the MEMORY_ONLY_SEARCH setting. |
ReadModifiers |
remove(ReadModifiers modifiers)
Creates a new modifiers instance which excludes the specified modifiers from this instance. |
ReadModifiers |
setIsolationLevel(ReadModifiers isolationLevel)
Creates a new modifiers instance with the specified isolation level set and any other isolation level unset. |
Methods inherited from class com.gigaspaces.client.IsolationLevelModifiers |
---|
isDirtyRead, isReadCommitted, isRepeatableRead, setIsolationLevel |
Methods inherited from class com.gigaspaces.client.SpaceProxyOperationModifiers |
---|
add, contains, createIfNeeded, equals, getCode, hashCode, readExternal, remove, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ReadModifiers NONE
public static final ReadModifiers REPEATABLE_READ
public static final ReadModifiers READ_COMMITTED
public static final ReadModifiers DIRTY_READ
public static final ReadModifiers EXCLUSIVE_READ_LOCK
public static final ReadModifiers IGNORE_PARTIAL_FAILURE
public static final ReadModifiers FIFO
public static final ReadModifiers FIFO_GROUPING_POLL
SpaceFifoGroupingProperty
.
SpaceFifoGroupingProperty}
public static final ReadModifiers MEMORY_ONLY_SEARCH
Constructor Detail |
---|
public ReadModifiers()
public ReadModifiers(ReadModifiers modifiers1, ReadModifiers modifiers2)
modifiers1
- modifiers2
- public ReadModifiers(ReadModifiers modifiers1, ReadModifiers modifiers2, ReadModifiers modifiers3)
modifiers1
- modifiers2
- modifiers3
- public ReadModifiers(ReadModifiers... modifiers)
modifiers
- Method Detail |
---|
public boolean contains(ReadModifiers modifiers)
modifiers
-
public ReadModifiers add(ReadModifiers modifiers)
modifiers
- Modifiers to add.
public ReadModifiers remove(ReadModifiers modifiers)
modifiers
- Modifiers to remove.
public ReadModifiers setIsolationLevel(ReadModifiers isolationLevel)
isolationLevel
- The isolation level to set.
public boolean isExclusiveReadLock()
EXCLUSIVE_READ_LOCK
setting.
EXCLUSIVE_READ_LOCK
setting, false otherwise.public boolean isIgnorePartialFailure()
IGNORE_PARTIAL_FAILURE
setting.
IGNORE_PARTIAL_FAILURE
setting, false otherwise.public boolean isFifo()
FIFO
setting.
FIFO
setting, false otherwise.public boolean isFifoGroupingPoll()
FIFO_GROUPING_POLL
setting.
FIFO_GROUPING_POLL
setting, false otherwise.public boolean isMemoryOnlySearch()
MEMORY_ONLY_SEARCH
setting.
MEMORY_ONLY_SEARCH
setting, false otherwise.protected ReadModifiers create(int modifiers)
create
in class SpaceProxyOperationModifiers
protected Map<Integer,SpaceProxyOperationModifiers> getCache()
getCache
in class SpaceProxyOperationModifiers
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |