GemFire 6.5.1

com.gemstone.gemfire.cache.operations
Class RegionOperationContext

java.lang.Object
  extended by com.gemstone.gemfire.cache.operations.OperationContext
      extended by com.gemstone.gemfire.cache.operations.RegionOperationContext
Direct Known Subclasses:
RegionClearOperationContext, RegionDestroyOperationContext

public abstract class RegionOperationContext
extends OperationContext

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:
5.5

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gemstone.gemfire.cache.operations.OperationContext
OperationContext.OperationCode
 
Constructor Summary
RegionOperationContext(boolean postOperation)
          Constructor for a region operation.
 
Method Summary
 Object getCallbackArg()
          Get the callback argument object for this operation.
abstract  OperationContext.OperationCode getOperationCode()
          Return the operation associated with the OperationContext object.
 boolean isPostOperation()
          True if the context is for post-operation.
 void setCallbackArg(Object callbackArg)
          Set the callback argument object for this operation.
 
Methods inherited from class com.gemstone.gemfire.cache.operations.OperationContext
isClientUpdate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionOperationContext

public RegionOperationContext(boolean postOperation)
Constructor for a region operation.

Parameters:
postOperation - true to set the post-operation flag
Method Detail

getOperationCode

public abstract OperationContext.OperationCode getOperationCode()
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()
True if the context is for post-operation.

Specified by:
isPostOperation in class OperationContext

getCallbackArg

public Object getCallbackArg()
Get the callback argument object for this operation.

Returns:
the callback argument object for this operation.

setCallbackArg

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

Parameters:
callbackArg - the callback argument object for this operation.

GemFire 6.5.1

Copyright © 2002-2010 GemStone Systems, Inc. All Rights Reserved.