Class PutAllOperationContext
java.lang.Object
org.apache.geode.cache.operations.OperationContext
org.apache.geode.cache.operations.PutAllOperationContext
Deprecated.
Encapsulates a
OperationContext.OperationCode.PUTALL
operation for both the pre-operation and post-operation cases.- Since:
- GemFire 5.7
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.geode.cache.operations.OperationContext
OperationContext.OperationCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the callback argument object for this operation.<K,V> Map<K, V> getMap()Deprecated.Returns the map whose keys and values will be put.Deprecated.Return the operation associated with theOperationContextobject.booleanDeprecated.True if the context is for post-operation.voidsetCallbackArg(Object callbackArg) Deprecated.Set the callback argument object for this operation.voidDeprecated.use getMap() instead and modify the values in the map it returnsprotected voidDeprecated.Set the post-operation flag to true.Methods inherited from class org.apache.geode.cache.operations.OperationContext
isClientUpdate, isClientUpdate
-
Constructor Details
-
PutAllOperationContext
Deprecated.Constructor for the operation.- Parameters:
map- the map of keys and values to put
-
-
Method Details
-
getOperationCode
Deprecated.Return the operation associated with theOperationContextobject.- Specified by:
getOperationCodein classOperationContext- Returns:
OperationCode.PUTALL.
-
isPostOperation
public boolean isPostOperation()Deprecated.True if the context is for post-operation.- Specified by:
isPostOperationin classOperationContext- Returns:
- whether the context is for post-operation
-
setPostOperation
protected void setPostOperation()Deprecated.Set the post-operation flag to true. -
getMap
Deprecated.Returns the map whose keys and values will be put. Note that only the values of this map can be changed. You can not add or remove keys. Any attempt to modify the returned map with an operation that is not supported will throw an UnsupportedOperationException. If the returned map is modified and this is a pre-operation authorization then the modified map is what will be used by the operation.- Type Parameters:
K- the type of keys in the mapV- the type of values in the map- Returns:
- the map whose keys and values will be put
-
setMap
Deprecated.use getMap() instead and modify the values in the map it returnsSet the authorized map.- Parameters:
map- the authorized map to set- Throws:
IllegalArgumentException- if the given map is null or if its keys are not the same as the original keys.
-
getCallbackArg
Deprecated.Get the callback argument object for this operation.- Returns:
- the callback argument object for this operation.
- Since:
- GemFire 8.1
-
setCallbackArg
Deprecated.Set the callback argument object for this operation.- Parameters:
callbackArg- the callback argument object for this operation.- Since:
- GemFire 8.1
-
ResourcePermissioninstead