Class InterestOperationContext

java.lang.Object
org.apache.geode.cache.operations.OperationContext
org.apache.geode.cache.operations.InterestOperationContext
Direct Known Subclasses:
RegisterInterestOperationContext, UnregisterInterestOperationContext

@Deprecated public abstract class InterestOperationContext extends OperationContext
Deprecated.
since Geode1.0, use ResourcePermission instead
Encapsulates registration/unregistration of interest in a region.
Since:
GemFire 5.5
  • Constructor Details

    • InterestOperationContext

      public InterestOperationContext(Object key, InterestType interestType)
      Deprecated.
      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 Details

    • isPostOperation

      public boolean isPostOperation()
      Deprecated.
      True if the context is for post-operation.
      Specified by:
      isPostOperation in class OperationContext
      Returns:
      whether the context is for post-operation
    • getKey

      public Object getKey()
      Deprecated.
      Get the key for this register/unregister interest operation.
      Returns:
      the key to be registered/unregistered.
    • setKey

      public void setKey(Object key)
      Deprecated.
      Set the key for this register/unregister interest operation.
      Parameters:
      key - the new key
    • getInterestType

      public InterestType getInterestType()
      Deprecated.
      Get the InterestType of this register/unregister operation.
      Returns:
      the InterestType of this request.