Class RegionOperationContext
java.lang.Object
org.apache.geode.cache.operations.OperationContext
org.apache.geode.cache.operations.RegionOperationContext
- Direct Known Subclasses:
RegionClearOperationContext,RegionDestroyOperationContext
Deprecated.
Encapsulates a region-level operation in both the pre-operation and post-operation cases. The
operations this class encapsulates are
OperationContext.OperationCode.REGION_CLEAR and
OperationContext.OperationCode.REGION_DESTROY.- Since:
- GemFire 5.5
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.geode.cache.operations.OperationContext
OperationContext.OperationCode -
Constructor Summary
ConstructorsConstructorDescriptionRegionOperationContext(boolean postOperation) Deprecated.Constructor for a region operation. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the callback argument 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.Methods inherited from class org.apache.geode.cache.operations.OperationContext
isClientUpdate, isClientUpdate
-
Constructor Details
-
RegionOperationContext
public RegionOperationContext(boolean postOperation) Deprecated.Constructor for a region operation.- Parameters:
postOperation- 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.REGION_CLEARorOperationContext.OperationCode.REGION_DESTROY.
-
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
-
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