Package com.gigaspaces.client
Class ClearModifiers
java.lang.Object
com.gigaspaces.client.SpaceProxyOperationModifiers
com.gigaspaces.client.ClearModifiers
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
Provides modifiers to customize the behavior of clear operations.
- Since:
- 9.0.1
- Author:
- Niv Ingberg
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClearModifiersRemove matching entries from memory only (do not remove from the underlying EDS).static final ClearModifiersSearch for matching entries in cache memory only (do not use the underlying EDS).static final ClearModifiersEmpty - use operation default behavior. -
Constructor Summary
ConstructorsConstructorDescriptionClearModifiers(ClearModifiers... modifiers) Creates a new modifiers from the specified modifiers.ClearModifiers(ClearModifiers modifiers1, ClearModifiers modifiers2) Creates a new modifiers from the specified modifiers.ClearModifiers(ClearModifiers modifiers1, ClearModifiers modifiers2, ClearModifiers modifiers3) Creates a new modifiers from the specified modifiers. -
Method Summary
Modifier and TypeMethodDescriptionadd(ClearModifiers modifiers) Creates a new modifiers instance which is a union of the specified modifiers and this instance.booleancontains(ClearModifiers modifiers) Checks if the specified modifier is set.protected ClearModifierscreate(int modifiers) protected Map<Integer,SpaceProxyOperationModifiers> getCache()booleanChecks if this instance contains theEVICT_ONLYsetting.booleanChecks if this instance contains theMEMORY_ONLY_SEARCHsetting.remove(ClearModifiers modifiers) Creates a new modifiers instance which excludes the specified modifiers from this instance.Methods 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. -
EVICT_ONLY
Remove matching entries from memory only (do not remove from the underlying EDS). Ignored if there's no underlying EDS or if the caching policy is ALL_IN_CACHE. -
MEMORY_ONLY_SEARCH
Search for matching entries in cache memory only (do not use the underlying EDS).
-
-
Constructor Details
-
ClearModifiers
public ClearModifiers() -
ClearModifiers
Creates a new modifiers from the specified modifiers. -
ClearModifiers
public ClearModifiers(ClearModifiers modifiers1, ClearModifiers modifiers2, ClearModifiers modifiers3) Creates a new modifiers from the specified modifiers. -
ClearModifiers
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.
-
isEvictOnly
public boolean isEvictOnly()Checks if this instance contains theEVICT_ONLYsetting.- Returns:
- true if this instance contains the
EVICT_ONLYsetting, 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
-