Gemfire JavaDocs
Class GetOperationContext
- java.lang.Object
-
- org.apache.geode.cache.operations.OperationContext
-
- org.apache.geode.cache.operations.KeyOperationContext
-
- org.apache.geode.cache.operations.KeyValueOperationContext
-
- org.apache.geode.cache.operations.GetOperationContext
-
@Deprecated public class GetOperationContext extends KeyValueOperationContext
Deprecated.since Geode1.0, useResourcePermission
insteadEncapsulates aOperationContext.OperationCode.GET
region operation having the key object for the pre-operation case and both key, value objects for the post-operation case.- Since:
- GemFire 5.5
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.geode.cache.operations.OperationContext
OperationContext.OperationCode
-
-
Constructor Summary
Constructors Constructor Description GetOperationContext(java.lang.Object key, boolean postOperation)
Deprecated.Constructor for the operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
getObject()
Deprecated.Get the value of this get operation.OperationContext.OperationCode
getOperationCode()
Deprecated.Return the operation associated with theOperationContext
object.void
setObject(java.lang.Object value, boolean isObject)
Deprecated.Set the result value of the object for this operation.void
setPostOperation()
Deprecated.Set the post-operation flag to true.-
Methods inherited from class org.apache.geode.cache.operations.KeyValueOperationContext
getDeserializedValue, getSerializedValue, getValue, isObject, setSerializedValue, setValue
-
Methods inherited from class org.apache.geode.cache.operations.KeyOperationContext
getCallbackArg, getKey, isPostOperation, setCallbackArg
-
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 classKeyOperationContext
- Returns:
OperationCode.GET
.
-
setPostOperation
public void setPostOperation()
Deprecated.Set the post-operation flag to true.- Overrides:
setPostOperation
in classKeyOperationContext
-
getObject
public java.lang.Object getObject()
Deprecated.Get the value of this get operation.- Returns:
- the result of get operation; null when the result is a serialized value in which case
user should invoke
KeyValueOperationContext.getSerializedValue()
orKeyValueOperationContext.getDeserializedValue()
.
-
setObject
public void setObject(java.lang.Object value, boolean isObject)
Deprecated.Set the result value of the object for this operation.- Parameters:
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
-
-