Class RegionOperationContext

java.lang.Object
org.apache.geode.cache.operations.OperationContext
org.apache.geode.cache.operations.RegionOperationContext
Direct Known Subclasses:
RegionClearOperationContext, RegionDestroyOperationContext

@Deprecated public abstract class RegionOperationContext extends OperationContext
Deprecated.
since Geode1.0, use ResourcePermission instead
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
  • 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

      public abstract OperationContext.OperationCode getOperationCode()
      Deprecated.
      Return the operation associated with the OperationContext object.
      Specified by:
      getOperationCode in class OperationContext
      Returns:
      The OperationCode of this operation. This is one of OperationContext.OperationCode.REGION_CLEAR or OperationContext.OperationCode.REGION_DESTROY.
    • isPostOperation

      public boolean isPostOperation()
      Deprecated.
      True if the context is for post-operation.
      Specified by:
      isPostOperation in class OperationContext
      Returns:
      whether the context is for post-operation
    • getCallbackArg

      public Object getCallbackArg()
      Deprecated.
      Get the callback argument object for this operation.
      Returns:
      the callback argument object for this operation.
    • setCallbackArg

      public void setCallbackArg(Object callbackArg)
      Deprecated.
      Set the callback argument object for this operation.
      Parameters:
      callbackArg - the callback argument object for this operation.