GemFire 7.0.1

com.gemstone.gemfire.cache
Interface EntryOperation<K,V>


public interface EntryOperation<K,V>

Gemfire Context passed to PartitionedResolver to compute the data location

Since:
6.0
See Also:
PartitionResolver

Method Summary
 Object getCallbackArgument()
          Returns the callbackArgument passed to the method that generated this event.
 K getKey()
          Returns the key.
 V getNewValue()
          Return the new value of this operation.
 Operation getOperation()
          Deprecated.  
 Region<K,V> getRegion()
          Returns the region to which this cached object belongs or the region that raised this event for RegionEvents.
 boolean isCallbackArgumentAvailable()
          Returns true if the callback argument is "available".
 

Method Detail

getRegion

Region<K,V> getRegion()
Returns the region to which this cached object belongs or the region that raised this event for RegionEvents.

Returns:
the region associated with this object or the region that raised this event.

getOperation

Operation getOperation()
Deprecated. 

Return a description of the operation that triggered this event. It may return null and should not be used to generate routing object in PartitionResolver.getRoutingObject(EntryOperation)

Returns:
the operation that triggered this event.
Since:
6.0

getKey

K getKey()
Returns the key.

Returns:
the key

getCallbackArgument

Object getCallbackArgument()
Returns the callbackArgument passed to the method that generated this event. Provided primarily in case this object or region has already been destroyed. See the Region interface methods that take a callbackArgument parameter.

Returns:
the callbackArgument associated with this event. null is returned if the callback argument is not propagated to the event. This happens for events given to TransactionListener and to CacheListener on the remote side of a transaction commit.

isCallbackArgumentAvailable

boolean isCallbackArgumentAvailable()
Returns true if the callback argument is "available". Not available means that the callback argument may have existed but it could not be obtained. Note that getCallbackArgument() will return null when this method returns false.

Since:
6.0

getNewValue

V getNewValue()
Return the new value of this operation.


GemFire 7.0.1

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