Package org.apache.geode.cache
Interface EntryOperation<K,V>
public interface EntryOperation<K,V>
Gemfire Context passed to
PartitionResolver to compute the data location- Since:
- GemFire 6.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the callbackArgument passed to the method that generated this event.getKey()Returns the key.Deprecated.Deprecated.Returns the region to which this cached object belongs or the region that raised this event forRegionEvents.booleanReturnstrueif the callback argument is "available".
-
Method Details
-
getRegion
Returns the region to which this cached object belongs or the region that raised this event forRegionEvents.- Returns:
- the region associated with this object or the region that raised this event.
-
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 inPartitionResolver.getRoutingObject(EntryOperation)- Returns:
- the operation that triggered this event.
- Since:
- GemFire 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 theRegioninterface methods that take a callbackArgument parameter. Only fields on the key should be used when creating the routing object.- Returns:
- the callbackArgument associated with this event.
nullis returned if the callback argument is not propagated to the event. This happens for events given toTransactionListenerand toCacheListeneron the remote side of a transaction commit.
-
isCallbackArgumentAvailable
boolean isCallbackArgumentAvailable()Returnstrueif the callback argument is "available". Not available means that the callback argument may have existed but it could not be obtained. Note thatgetCallbackArgument()will returnnullwhen this method returnsfalse.- Returns:
- the callback argument is available
- Since:
- GemFire 6.0
-
getNewValue
Deprecated.Returns the value but may return null and should not be used to generate routing object inPartitionResolver.getRoutingObject(EntryOperation). Only fields on the key should be used when creating the routing object.- Returns:
- the value.
-