VMware GemFire Java API Reference
Package org.apache.geode.cache
Interface EntryOperation<K,V>
-
public interface EntryOperation<K,V>Gemfire Context passed toPartitionResolverto compute the data location- Since:
- GemFire 6.0
- See Also:
PartitionResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.ObjectgetCallbackArgument()Returns the callbackArgument passed to the method that generated this event.KgetKey()Returns the key.VgetNewValue()Deprecated.OperationgetOperation()Deprecated.Region<K,V>getRegion()Returns the region to which this cached object belongs or the region that raised this event forRegionEvents.booleanisCallbackArgumentAvailable()Returnstrueif 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 forRegionEvents.- Returns:
- the region associated with this object or the region that raised this event.
-
getOperation
@Deprecated 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 inPartitionResolver.getRoutingObject(EntryOperation)- Returns:
- the operation that triggered this event.
- Since:
- GemFire 6.0
-
getKey
K getKey()
Returns the key.- Returns:
- the key
-
getCallbackArgument
java.lang.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 V 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.
-
-