Gemfire JavaDocs
Class PutAllOperationContext
- java.lang.Object
-
- org.apache.geode.cache.operations.OperationContext
-
- org.apache.geode.cache.operations.PutAllOperationContext
-
@Deprecated public class PutAllOperationContext extends OperationContext
Deprecated.since Geode1.0, useResourcePermission
insteadEncapsulates aOperationContext.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 Constructor Description PutAllOperationContext(java.util.Map map)
Deprecated.Constructor for the operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
getCallbackArg()
Deprecated.Get the callback argument object for this operation.<K,V>
java.util.Map<K,V>getMap()
Deprecated.Returns the map whose keys and values will be put.OperationContext.OperationCode
getOperationCode()
Deprecated.Return the operation associated with theOperationContext
object.boolean
isPostOperation()
Deprecated.True if the context is for post-operation.void
setCallbackArg(java.lang.Object callbackArg)
Deprecated.Set the callback argument object for this operation.void
setMap(java.util.Map map)
Deprecated.use getMap() instead and modify the values in the map it returnsprotected void
setPostOperation()
Deprecated.Set the post-operation flag to true.-
Methods inherited from class org.apache.geode.cache.operations.OperationContext
isClientUpdate, isClientUpdate
-
-
-
-
Method Detail
-
getOperationCode
public OperationContext.OperationCode getOperationCode()
Deprecated.Return the operation associated with theOperationContext
object.- Specified by:
getOperationCode
in classOperationContext
- Returns:
OperationCode.PUTALL
.
-
isPostOperation
public boolean isPostOperation()
Deprecated.True if the context is for post-operation.- Specified by:
isPostOperation
in classOperationContext
- Returns:
- whether the context is for post-operation
-
setPostOperation
protected void setPostOperation()
Deprecated.Set the post-operation flag to true.
-
getMap
public <K,V> java.util.Map<K,V> 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 public void setMap(java.util.Map map)
Deprecated.use getMap() instead and modify the values in the map it returnsSet the authorized map.- Parameters:
map
- the authorized map to set- Throws:
java.lang.IllegalArgumentException
- if the given map is null or if its keys are not the same as the original keys.
-
getCallbackArg
public java.lang.Object getCallbackArg()
Deprecated.Get the callback argument object for this operation.- Returns:
- the callback argument object for this operation.
- Since:
- GemFire 8.1
-
setCallbackArg
public void setCallbackArg(java.lang.Object callbackArg)
Deprecated.Set the callback argument object for this operation.- Parameters:
callbackArg
- the callback argument object for this operation.- Since:
- GemFire 8.1
-
-