Gemfire JavaDocs
Package org.apache.geode.cache
Interface EntryOperation<K,V>
-
public interface EntryOperation<K,V>
Gemfire Context passed toPartitionResolver
to 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.Object
getCallbackArgument()
Returns the callbackArgument passed to the method that generated this event.K
getKey()
Returns the key.V
getNewValue()
Deprecated.Operation
getOperation()
Deprecated.Region<K,V>
getRegion()
Returns the region to which this cached object belongs or the region that raised this event forRegionEvent
s.boolean
isCallbackArgumentAvailable()
Returnstrue
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 forRegionEvent
s.- 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 theRegion
interface 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.
null
is returned if the callback argument is not propagated to the event. This happens for events given toTransactionListener
and toCacheListener
on the remote side of a transaction commit.
-
isCallbackArgumentAvailable
boolean isCallbackArgumentAvailable()
Returnstrue
if the callback argument is "available". Not available means that the callback argument may have existed but it could not be obtained. Note thatgetCallbackArgument()
will returnnull
when 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.
-
-