GemFire 5.7.1

com.gemstone.gemfire.cache.operations
Class OperationContext

java.lang.Object
  extended by com.gemstone.gemfire.cache.operations.OperationContext
Direct Known Subclasses:
com.gemstone.gemfire.internal.cache.operations.InterestOperationContext, com.gemstone.gemfire.internal.cache.operations.KeyOperationContext, KeySetOperationContext, PutAllOperationContext, QueryOperationContext, RegionCreateOperationContext, com.gemstone.gemfire.internal.cache.operations.RegionOperationContext

public abstract class OperationContext
extends Object

Encapsulates a cache operation and the data associated with it for both the pre-operation and post-operation cases. Implementations for specific operations will extend this with the specifics as required e.g. a getKey() method for a GET operation. Implementations for all the cache operations that require authorization are provided. Implementations of this interface are not expected to be thread-safe.

Since:
5.5

Nested Class Summary
static class OperationContext.OperationCode
          Enumeration for various cache operations.
 
Constructor Summary
OperationContext()
           
 
Method Summary
abstract  OperationContext.OperationCode getOperationCode()
          Return the operation code associated with the OperationContext object.
 boolean isClientUpdate(OperationContext context)
          True if the context is created before sending the updates to a client.
abstract  boolean isPostOperation()
          True if the context is for post-operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationContext

public OperationContext()
Method Detail

getOperationCode

public abstract OperationContext.OperationCode getOperationCode()
Return the operation code associated with the OperationContext object.


isPostOperation

public abstract boolean isPostOperation()
True if the context is for post-operation. The OperationContext interface encapsulates the data both before the operation is performed and after the operation is complete. For example, for a query operation the Query object as well as the list of region names referenced by the query would be part of the context object in the pre-processing stage. In the post-processing stage the context object shall contain results of the query.


isClientUpdate

public boolean isClientUpdate(OperationContext context)
True if the context is created before sending the updates to a client.


GemFire 5.7.1

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