GemFire 6.5.1.2

com.gemstone.gemfire.cache.operations
Class InterestOperationContext

java.lang.Object
  extended by com.gemstone.gemfire.cache.operations.OperationContext
      extended by com.gemstone.gemfire.cache.operations.InterestOperationContext
Direct Known Subclasses:
RegisterInterestOperationContext, UnregisterInterestOperationContext

public abstract class InterestOperationContext
extends OperationContext

Encapsulates registration/unregistration of interest in a region.

Since:
5.5

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gemstone.gemfire.cache.operations.OperationContext
OperationContext.OperationCode
 
Constructor Summary
InterestOperationContext(Object key, InterestType interestType)
          Constructor for the register interest operation.
 
Method Summary
 InterestType getInterestType()
          Get the InterestType of this register/unregister operation.
 Object getKey()
          Get the key for this register/unregister interest operation.
 boolean isPostOperation()
          True if the context is for post-operation.
 void setKey(Object key)
          Set the key for this register/unregister interest operation.
 
Methods inherited from class com.gemstone.gemfire.cache.operations.OperationContext
getOperationCode, isClientUpdate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterestOperationContext

public InterestOperationContext(Object key,
                                InterestType interestType)
Constructor for the register interest operation.

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

isPostOperation

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

Specified by:
isPostOperation in class OperationContext

getKey

public Object getKey()
Get the key for this register/unregister interest operation.

Returns:
the key to be registered/unregistered.

setKey

public void setKey(Object key)
Set the key for this register/unregister interest operation.

Parameters:
key - the new key

getInterestType

public InterestType getInterestType()
Get the InterestType of this register/unregister operation.

Returns:
the InterestType of this request.

GemFire 6.5.1.2

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