public class GetOperationContext extends KeyValueOperationContext
OperationContext.OperationCode.GET region operation having the key
object for the pre-operation case and both key, value objects for the
post-operation case.OperationContext.OperationCode| Constructor and Description |
|---|
GetOperationContext(java.lang.Object key,
boolean postOperation)
Constructor for the operation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getObject()
Get the value of this get operation.
|
OperationContext.OperationCode |
getOperationCode()
Return the operation associated with the
OperationContext
object. |
void |
setObject(java.lang.Object value,
boolean isObject)
Set the result value of the object for this operation.
|
void |
setPostOperation()
Set the post-operation flag to true.
|
getDeserializedValue, getSerializedValue, getValue, isObject, setSerializedValue, setValuegetCallbackArg, getKey, isPostOperation, setCallbackArgisClientUpdate, isClientUpdatepublic GetOperationContext(java.lang.Object key,
boolean postOperation)
key - the key for this operationpostOperation - true if the context is for the post-operation casepublic OperationContext.OperationCode getOperationCode()
OperationContext
object.getOperationCode in class KeyOperationContextOperationCode.GET.public void setPostOperation()
setPostOperation in class KeyOperationContextpublic java.lang.Object getObject()
KeyValueOperationContext.getSerializedValue()
or KeyValueOperationContext.getDeserializedValue().public void setObject(java.lang.Object value,
boolean isObject)
value - the result of this operation; can be a serialized byte array
or a deserialized objectisObject - true when the value is an object (either serialized or
deserialized); false when it is a raw byte array