public interface EntryOperation<K,V>
PartitionedResolver
to compute the
data locationPartitionResolver
Modifier and Type | Method and Description |
---|---|
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 for
RegionEvent s. |
boolean |
isCallbackArgumentAvailable()
Returns
true if the callback argument is "available". |
Region<K,V> getRegion()
RegionEvent
s.Operation getOperation()
PartitionResolver.getRoutingObject(EntryOperation)
K getKey()
Object getCallbackArgument()
Region
interface methods that take a
callbackArgument parameter.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.boolean isCallbackArgumentAvailable()
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
.V getNewValue()
PartitionResolver.getRoutingObject(EntryOperation)
as get(key) and other
GemFire operations may not work correctly if using the value to determine the
routing object.
Only fields on the key should be used when creating the routing object.Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.