public interface CacheEvent<K,V>
Prior to release 6.0
the NOT_AVAILABLE
constant was used to indicate an
object value was not available. However in 6.0
generic typing was added to
Region
and since this constant's type will not be an instance of the generic type
V
returning it would cause a ClassCastException. So in 6.0
and later
null
is now used in place of NOT_AVAILABLE
.
CacheListener
Modifier and Type | Method and Description |
---|---|
Object |
getCallbackArgument()
Returns the callbackArgument passed to the method that generated this event.
|
DistributedMember |
getDistributedMember()
Returns the
DistributedMember that this event originated in. |
Operation |
getOperation()
Return a description of the operation that triggered this event.
|
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". |
boolean |
isOriginRemote()
Answer true if this event originated in a cache other than this one.
|
Region<K,V> getRegion()
RegionEvent
s.Operation getOperation()
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
.boolean isOriginRemote()
DistributedMember getDistributedMember()
DistributedMember
that this event originated in.