Package com.gigaspaces.client
Class CountModifiers
java.lang.Object
com.gigaspaces.client.SpaceProxyOperationModifiers
com.gigaspaces.client.IsolationLevelModifiers
com.gigaspaces.client.CountModifiers
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
Provides modifiers to customize the behavior of count operations.
- Since:
- 9.0.1
- Author:
- Niv Ingberg
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CountModifiersWhen 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 final CountModifiersThe resulting entries are locked, blocking update/remove from other transactions.static final CountModifiersSearch for matching entries in cache memory only (do not use the underlying EDS).static final CountModifiersEmpty - use operation default behavior.static final CountModifiersWhen 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 final CountModifiersWhen 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
ConstructorsConstructorDescriptionRequired for ExternalizableCountModifiers(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. -
Method Summary
Modifier and TypeMethodDescriptionadd(CountModifiers modifiers) Creates a new modifiers instance which is a union of the specified modifiers and this instance.booleancontains(CountModifiers modifiers) Checks if the specified modifier is set.protected CountModifierscreate(int modifiers) protected Map<Integer,SpaceProxyOperationModifiers> getCache()booleanChecks if this instance contains theEXCLUSIVE_READ_LOCKsetting.booleanChecks if this instance contains theMEMORY_ONLY_SEARCHsetting.remove(CountModifiers modifiers) Creates a new modifiers instance which excludes the specified modifiers from this instance.setIsolationLevel(CountModifiers 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, setIsolationLevelMethods inherited from class com.gigaspaces.client.SpaceProxyOperationModifiers
add, contains, createIfNeeded, equals, getCode, hashCode, readExternal, remove, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
NONE
Empty - use operation default behavior. -
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). If the operation is invoked in a transactional context, the resulting entries will be locked, blocking update/remove from other transactions. -
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. -
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. -
EXCLUSIVE_READ_LOCK
The resulting entries are locked, blocking update/remove from other transactions. -
MEMORY_ONLY_SEARCH
Search for matching entries in cache memory only (do not use the underlying EDS).
-
-
Constructor Details
-
CountModifiers
public CountModifiers()Required for Externalizable -
CountModifiers
Creates a new modifiers from the specified modifiers. -
CountModifiers
public CountModifiers(CountModifiers modifiers1, CountModifiers modifiers2, CountModifiers modifiers3) Creates a new modifiers from the specified modifiers. -
CountModifiers
Creates a new modifiers from the specified modifiers.
-
-
Method Details
-
contains
Checks if the specified modifier is set.- Returns:
- true if the specified modifier is set, false otherwise.
-
add
Creates a new modifiers instance which is a union of the specified modifiers and this instance.- Parameters:
modifiers- Modifiers to add.- Returns:
- A union of the current modifiers and the specified modifiers.
-
remove
Creates a new modifiers instance which excludes the specified modifiers from this instance.- Parameters:
modifiers- Modifiers to remove.- Returns:
- The modifiers from this instance without the modifiers from the specified instance.
-
setIsolationLevel
Creates a new modifiers instance with the specified isolation level set and any other isolation level unset.- Parameters:
isolationLevel- The isolation level to set.- Returns:
- The modifiers from this instance with the new isolation level set and any previous one removed.
-
isExclusiveReadLock
public boolean isExclusiveReadLock()Checks if this instance contains theEXCLUSIVE_READ_LOCKsetting.- Returns:
- true if this instance contains the
EXCLUSIVE_READ_LOCKsetting, false otherwise.
-
isMemoryOnlySearch
public boolean isMemoryOnlySearch()Checks if this instance contains theMEMORY_ONLY_SEARCHsetting.- Returns:
- true if this instance contains the
MEMORY_ONLY_SEARCHsetting, false otherwise.
-
create
- Specified by:
createin classSpaceProxyOperationModifiers
-
getCache
- Specified by:
getCachein classSpaceProxyOperationModifiers
-