Class KeyOperationContext
java.lang.Object
org.apache.geode.cache.operations.OperationContext
org.apache.geode.cache.operations.KeyOperationContext
- Direct Known Subclasses:
DestroyOperationContext,InvalidateOperationContext,KeyValueOperationContext
Deprecated.
Encapsulates a region operation that requires only a key object for the pre-operation case. The
operations this class encapsulates are
OperationContext.OperationCode.DESTROY and
OperationContext.OperationCode.CONTAINS_KEY.- Since:
- GemFire 5.5
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.geode.cache.operations.OperationContext
OperationContext.OperationCode -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor for the operation.KeyOperationContext(Object key, boolean postOperation) Deprecated.Constructor for the operation. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the callback argument object for this operation.getKey()Deprecated.Get the key object for this operation.abstract OperationContext.OperationCodeDeprecated.Return the operation associated with theOperationContextobject.booleanDeprecated.True if the context is for post-operation.voidsetCallbackArg(Object callbackArg) Deprecated.Set the callback argument object for this operation.protected voidDeprecated.Set the post-operation flag to true.Methods inherited from class org.apache.geode.cache.operations.OperationContext
isClientUpdate, isClientUpdate
-
Constructor Details
-
KeyOperationContext
Deprecated.Constructor for the operation.- Parameters:
key- the key for this operation
-
KeyOperationContext
Deprecated.Constructor for the operation.- Parameters:
key- the key for this operationpostOperation- true to set the post-operation flag
-
-
Method Details
-
getOperationCode
Deprecated.Return the operation associated with theOperationContextobject.- Specified by:
getOperationCodein classOperationContext- Returns:
- The
OperationCodeof this operation. This is one ofOperationContext.OperationCode.DESTROYorOperationContext.OperationCode.CONTAINS_KEYforKeyOperationContext, and one ofOperationContext.OperationCode.GETorOperationContext.OperationCode.PUTforKeyValueOperationContext.
-
isPostOperation
public boolean isPostOperation()Deprecated.True if the context is for post-operation.- Specified by:
isPostOperationin classOperationContext- Returns:
- whether the context is for post-operation
-
setPostOperation
protected void setPostOperation()Deprecated.Set the post-operation flag to true. -
getKey
Deprecated.Get the key object for this operation.- Returns:
- the key object for this operation.
-
getCallbackArg
Deprecated.Get the callback argument object for this operation.- Returns:
- the callback argument object for this operation.
-
setCallbackArg
Deprecated.Set the callback argument object for this operation.- Parameters:
callbackArg- the callback argument object for this operation.
-
ResourcePermissioninstead