public class ReadModifiers extends IsolationLevelModifiers
| Modifier and Type | Field and Description |
|---|---|
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 |
IF_EXISTS
Blocks only if there's a matching entry which is locked by another transaction.
|
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).
|
| Modifier | Constructor and Description |
|---|---|
|
ReadModifiers()
Required for Externalizable
|
protected |
ReadModifiers(int code) |
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
isIfExists()
Checks if this instance contains the
IF_EXISTS 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.
|
isDirtyRead, isReadCommitted, isRepeatableRead, setIsolationLeveladd, contains, createIfNeeded, equals, getCode, hashCode, readExternal, remove, writeExternalclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitenabledSmartExternalizableWithReferencepublic 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
public static final ReadModifiers IF_EXISTS
EntryLockedException will
be thrown. Here are some of the possible cases when using this modifier: EntryLockedExceptionpublic ReadModifiers()
protected ReadModifiers(int code)
public ReadModifiers(ReadModifiers modifiers1, ReadModifiers modifiers2)
public ReadModifiers(ReadModifiers modifiers1, ReadModifiers modifiers2, ReadModifiers modifiers3)
public ReadModifiers(ReadModifiers... modifiers)
public boolean contains(ReadModifiers 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.public boolean isIfExists()
IF_EXISTS setting.IF_EXISTS setting, false otherwise.protected ReadModifiers create(int modifiers)
create in class SpaceProxyOperationModifiersprotected Map<Integer,SpaceProxyOperationModifiers> getCache()
getCache in class SpaceProxyOperationModifiersCopyright © GigaSpaces.