GemFire 6.6.1

com.gemstone.gemfire.cache.operations
Class RegisterInterestOperationContext

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

public class RegisterInterestOperationContext
extends InterestOperationContext

Encapsulates a OperationContext.OperationCode.REGISTER_INTEREST region operation for the pre-operation case.

Since:
5.5

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gemstone.gemfire.cache.operations.OperationContext
OperationContext.OperationCode
 
Constructor Summary
RegisterInterestOperationContext(Object key, InterestType interestType, InterestResultPolicy policy)
          Constructor for the register interest operation.
 
Method Summary
 InterestResultPolicy getInterestResultPolicy()
          Get the InterestResultPolicy of this register/unregister operation.
 OperationContext.OperationCode getOperationCode()
          Return the operation associated with the OperationContext object.
 
Methods inherited from class com.gemstone.gemfire.cache.operations.InterestOperationContext
getInterestType, getKey, isPostOperation, setKey
 
Methods inherited from class com.gemstone.gemfire.cache.operations.OperationContext
isClientUpdate, isClientUpdate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterInterestOperationContext

public RegisterInterestOperationContext(Object key,
                                        InterestType interestType,
                                        InterestResultPolicy policy)
Constructor for the register interest operation.

Parameters:
key - the key or list of keys being registered
interestType - the InterestType of the register request
policy - the InterestResultPolicy of the register request
Method Detail

getOperationCode

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

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

getInterestResultPolicy

public InterestResultPolicy getInterestResultPolicy()
Get the InterestResultPolicy of this register/unregister operation.

Returns:
the InterestResultPolicy of this request.

GemFire 6.6.1

Copyright © 1997-2011 VMware, Inc. All rights reserved.