GemFire 5.5.1

com.gemstone.gemfire.cache.operations
Class KeySetOperationContext

java.lang.Object
  extended by com.gemstone.gemfire.cache.operations.OperationContext
      extended by com.gemstone.gemfire.cache.operations.KeySetOperationContext

public class KeySetOperationContext
extends OperationContext

Encapsulates a OperationContext.OperationCode.KEY_SET operation for both the pre-operation and post-operation cases.

Since:
5.2

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gemstone.gemfire.cache.operations.OperationContext
OperationContext.OperationCode
 
Constructor Summary
KeySetOperationContext(boolean postOperation)
          Constructor for the operation.
 
Method Summary
 Set getKeySet()
          Get the set of keys returned as a result of Region.keySet() operation.
 OperationContext.OperationCode getOperationCode()
          Return the operation associated with the OperationContext object.
 boolean isPostOperation()
          True if the context is for post-operation.
 void setKeySet(Set keySet)
          Set the keys to be returned as the result of Region.keySet() operation.
 void setPostOperation()
          Set the post-operation flag to true.
 
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

KeySetOperationContext

public KeySetOperationContext(boolean postOperation)
Constructor for the operation.

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

getOperationCode

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

Specified by:
getOperationCode in class OperationContext
Returns:
OperationCode.KEY_SET.

isPostOperation

public boolean isPostOperation()
True if the context is for post-operation.

Specified by:
isPostOperation in class OperationContext

setPostOperation

public void setPostOperation()
Set the post-operation flag to true.


getKeySet

public Set getKeySet()
Get the set of keys returned as a result of Region.keySet() operation.

Returns:
the set of keys

setKeySet

public void setKeySet(Set keySet)
Set the keys to be returned as the result of Region.keySet() operation.

Parameters:
keySet - the set of keys to be returned for this operation.

GemFire 5.5.1

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