public class CountModifiers extends IsolationLevelModifiers
Modifier and Type | Field and Description |
---|---|
static CountModifiers |
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 CountModifiers |
EXCLUSIVE_READ_LOCK
The resulting entries are locked, blocking update/remove from other transactions.
|
static CountModifiers |
MEMORY_ONLY_SEARCH
Search for matching entries in cache memory only (do not use the underlying EDS).
|
static CountModifiers |
NONE
Empty - use operation default behavior.
|
static CountModifiers |
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 CountModifiers |
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 and Description |
---|
CountModifiers()
Required for Externalizable
|
CountModifiers(CountModifiers... modifiers)
Creates a new modifiers from the specified modifiers.
|
CountModifiers(CountModifiers modifiers1,
CountModifiers modifiers2)
Creates a new modifiers from the specified modifiers.
|
CountModifiers(CountModifiers modifiers1,
CountModifiers modifiers2,
CountModifiers modifiers3)
Creates a new modifiers from the specified modifiers.
|
Modifier and Type | Method and Description |
---|---|
CountModifiers |
add(CountModifiers modifiers)
Creates a new modifiers instance which is a union of the specified modifiers and this
instance.
|
boolean |
contains(CountModifiers modifiers)
Checks if the specified modifier is set.
|
protected CountModifiers |
create(int modifiers) |
protected Map<Integer,SpaceProxyOperationModifiers> |
getCache() |
boolean |
isExclusiveReadLock()
Checks if this instance contains the
EXCLUSIVE_READ_LOCK setting. |
boolean |
isMemoryOnlySearch()
Checks if this instance contains the
MEMORY_ONLY_SEARCH setting. |
CountModifiers |
remove(CountModifiers modifiers)
Creates a new modifiers instance which excludes the specified modifiers from this instance.
|
CountModifiers |
setIsolationLevel(CountModifiers isolationLevel)
Creates a new modifiers instance with the specified isolation level set and any other
isolation level unset.
|
isDirtyRead, isReadCommitted, isRepeatableRead, setIsolationLevel
add, contains, createIfNeeded, equals, getCode, hashCode, readExternal, remove, writeExternal
public static final CountModifiers NONE
public static final CountModifiers REPEATABLE_READ
public static final CountModifiers READ_COMMITTED
public static final CountModifiers DIRTY_READ
public static final CountModifiers EXCLUSIVE_READ_LOCK
public static final CountModifiers MEMORY_ONLY_SEARCH
public CountModifiers()
public CountModifiers(CountModifiers modifiers1, CountModifiers modifiers2)
public CountModifiers(CountModifiers modifiers1, CountModifiers modifiers2, CountModifiers modifiers3)
public CountModifiers(CountModifiers... modifiers)
public boolean contains(CountModifiers modifiers)
public CountModifiers add(CountModifiers modifiers)
modifiers
- Modifiers to add.public CountModifiers remove(CountModifiers modifiers)
modifiers
- Modifiers to remove.public CountModifiers setIsolationLevel(CountModifiers isolationLevel)
isolationLevel
- The isolation level to set.public boolean isExclusiveReadLock()
EXCLUSIVE_READ_LOCK
setting.EXCLUSIVE_READ_LOCK
setting, false
otherwise.public boolean isMemoryOnlySearch()
MEMORY_ONLY_SEARCH
setting.MEMORY_ONLY_SEARCH
setting, false
otherwise.protected CountModifiers create(int modifiers)
create
in class SpaceProxyOperationModifiers
protected Map<Integer,SpaceProxyOperationModifiers> getCache()
getCache
in class SpaceProxyOperationModifiers
Copyright © GigaSpaces.