public interface EntryEventDataCache
EntryEventData. Instances of this interface are obtained by FilteringStrategys. This provides a
chance for filtering strategies to optimize event data caching implementation. This is not a general-purpose cache, rather it
is meant to be used within the context of processing a single entry event in single-threaded code.| Modifier and Type | Method and Description |
|---|---|
Collection<EntryEventData> |
eventDataExcludingValues()
Return
EntryEventData created & cached by invocations to
getOrCreateEventData(String, Address, Data, Object, Object, Object, int, boolean), excluding values from
the EntryEventData object. |
Collection<EntryEventData> |
eventDataIncludingValues()
Return
EntryEventData created & cached by invocations to
getOrCreateEventData(String, Address, Data, Object, Object, Object, int, boolean), including values in
the EntryEventData object. |
EntryEventData |
getOrCreateEventData(String mapName,
Address caller,
Data dataKey,
Object newValue,
Object oldValue,
Object mergingValue,
int eventType,
boolean includingValues)
If an
EntryEventData for the given parameters is already cached then return the cached value, otherwise create,
cache and return the EntryEventData. |
boolean |
isEmpty()
Indicate whether event data have been created and are cached in this cache or not.
|
EntryEventData getOrCreateEventData(String mapName, Address caller, Data dataKey, Object newValue, Object oldValue, Object mergingValue, int eventType, boolean includingValues)
EntryEventData for the given parameters is already cached then return the cached value, otherwise create,
cache and return the EntryEventData.mapName - name of mapcaller - dataKey - newValue - oldValue - mergingValue - eventType - includingValues - EntryEventData already cached in Map eventDataPerEventType for the given eventType or
if not already cached, a new EntryEventData object.boolean isEmpty()
eventDataIncludingValues.size() + eventDataExcludingValues.size() > 0.true if event data were not created in this cache, otherwise false.Collection<EntryEventData> eventDataIncludingValues()
EntryEventData created & cached by invocations to
getOrCreateEventData(String, Address, Data, Object, Object, Object, int, boolean), including values in
the EntryEventData object.EntryEventData created & cached including values. When no such EntryEventData exist, may
return null or empty collection.Collection<EntryEventData> eventDataExcludingValues()
EntryEventData created & cached by invocations to
getOrCreateEventData(String, Address, Data, Object, Object, Object, int, boolean), excluding values from
the EntryEventData object.EntryEventData created & cached excluding values. When no such EntryEventData exist, may
return null or empty collection.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.