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.
Encapsulates a
OperationContext.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
ConstructorsConstructorDescriptionGetOperationContext(Object key, boolean postOperation) Deprecated.Constructor for the operation. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the value of this get operation.Deprecated.Return the operation associated with theOperationContextobject.voidDeprecated.Set the result value of the object for this operation.voidDeprecated.Set the post-operation flag to true.Methods inherited from class org.apache.geode.cache.operations.KeyValueOperationContext
getDeserializedValue, getSerializedValue, getValue, isObject, setSerializedValue, setValueMethods inherited from class org.apache.geode.cache.operations.KeyOperationContext
getCallbackArg, getKey, isPostOperation, setCallbackArgMethods inherited from class org.apache.geode.cache.operations.OperationContext
isClientUpdate, isClientUpdate
-
Constructor Details
-
GetOperationContext
Deprecated.Constructor for the operation.- Parameters:
key- the key for this operationpostOperation- true if the context is for the post-operation case
-
-
Method Details
-
getOperationCode
Deprecated.Return the operation associated with theOperationContextobject.- Specified by:
getOperationCodein classKeyOperationContext- Returns:
OperationCode.GET.
-
setPostOperation
public void setPostOperation()Deprecated.Set the post-operation flag to true.- Overrides:
setPostOperationin classKeyOperationContext
-
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
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
-
ResourcePermissioninstead