public class PutAllOperationContext extends OperationContext
OperationContext.OperationCode.PUTALL
operation for both the pre-operation and post-operation cases.OperationContext.OperationCode
Constructor and Description |
---|
PutAllOperationContext(java.util.Map map)
Constructor for the operation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCallbackArg()
Get the callback argument object for this operation.
|
<K,V> java.util.Map<K,V> |
getMap()
Returns the map whose keys and values will be put.
|
OperationContext.OperationCode |
getOperationCode()
Return the operation associated with the
OperationContext object. |
boolean |
isPostOperation()
True if the context is for post-operation.
|
void |
setCallbackArg(java.lang.Object callbackArg)
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 returns
|
protected void |
setPostOperation()
Set the post-operation flag to true.
|
isClientUpdate, isClientUpdate
public PutAllOperationContext(java.util.Map map)
public OperationContext.OperationCode getOperationCode()
OperationContext
object.getOperationCode
in class OperationContext
OperationCode.PUTALL
.public boolean isPostOperation()
isPostOperation
in class OperationContext
protected void setPostOperation()
public <K,V> java.util.Map<K,V> getMap()
public void setMap(java.util.Map map)
java.lang.IllegalArgumentException
- if the given map is null or if its keys are not the same as
the original keys.public java.lang.Object getCallbackArg()
public void setCallbackArg(java.lang.Object callbackArg)
callbackArg
- the callback argument object for this operation.