|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.EventObject
com.tangosol.util.MapEvent
com.tangosol.net.cache.CacheEvent
com.tangosol.util.ConverterCollections.ConverterMapEvent
public static class ConverterCollections.ConverterMapEvent
A ConverterMapEvent views an underlying MapEvent through a set of key and value Converters. This event may cache converted keys and/or values to optimize out future conversions.
Nested Class Summary | |
---|---|
protected class |
ConverterCollections.ConverterMapEvent.ConverterMapEventBinaryEntry ConverterMapEventBinaryEntry provides both the Map Entry and the BinaryEntry interfaces to the information encapsulated inside the ConverterMapEvent. |
protected class |
ConverterCollections.ConverterMapEvent.ConverterMapEventEntry ConverterMapEventEntry provides the Map Entry interface to the information encapsulated inside the ConverterMapEvent. |
Field Summary | |
---|---|
protected BackingMapManagerContext |
m_context The BackingMapManagerContext to use for extracting binary values. |
protected Converter |
m_convKey The Converter to view the underlying MapEvent's key. |
protected Converter |
m_convVal The Converter to view the underlying MapEvent's value. |
protected MapEvent |
m_event The underlying MapEvent. |
static java.lang.Object |
NO_VALUE Tag object indicating that a corresponding value has not been converted. |
Fields inherited from class com.tangosol.net.cache.CacheEvent |
---|
m_fSynthetic |
Fields inherited from class com.tangosol.util.MapEvent |
---|
ENTRY_DELETED, ENTRY_INSERTED, ENTRY_UPDATED, m_nId, m_oKey, m_oValueNew, m_oValueOld |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ConverterCollections.ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal) Construct a ConverterMapEvent. |
|
ConverterCollections.ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal, BackingMapManagerContext context) Construct a ConverterMapEvent. |
Method Summary | |
---|---|
void |
clearConverted() Remove any cached conversions of the key or values. |
BackingMapManagerContext |
getContext() Get the BackingMapManagerContext if one was provided. |
Converter |
getConverterKeyUp() Return the Converter used to view the underlying MapEvent's key through. |
Converter |
getConverterValueUp() Return the Converter used to view the underlying MapEvent's value through. |
java.lang.Object |
getKey() Return a key associated with this event. |
MapEvent |
getMapEvent() Return the underlying MapEvent. |
java.util.Map.Entry |
getNewEntry() Return a Map Entry that represents the state of the Entry after the change occurred that generated this event. |
java.lang.Object |
getNewValue() Return a new value associated with this event. |
java.util.Map.Entry |
getOldEntry() Return a Map Entry that represents the state of the Entry before the change occurred that generated this event. |
java.lang.Object |
getOldValue() Return an old value associated with this event. |
boolean |
isKeyConverted() Check if the event's key has been converted. |
boolean |
isNewValueConverted() Check if the event's new value has been converted. |
boolean |
isOldValueConverted() Check if the event's old value has been converted. |
void |
setKey(java.lang.Object oKey) Set the cached converted old value associated with this event. |
void |
setNewValue(java.lang.Object oValue) Set the cached converted new value associated with this event. |
void |
setOldValue(java.lang.Object oValue) Set the cached converted old value associated with this event. |
Methods inherited from class com.tangosol.net.cache.CacheEvent |
---|
getDescription, isSynthetic |
Methods inherited from class com.tangosol.util.MapEvent |
---|
dispatch, dispatch, dispatch, getDescription, getId, getMap, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Field Detail |
---|
public static final java.lang.Object NO_VALUE
protected MapEvent m_event
protected Converter m_convKey
protected Converter m_convVal
protected BackingMapManagerContext m_context
Constructor Detail |
---|
public ConverterCollections.ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal)
event
- the underlying MapEventmap
- the new event's sourceconvKey
- the Converter to view the underlying MapEvent's keyconvVal
- the Converter to view the underlying MapEvent's valuespublic ConverterCollections.ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal, BackingMapManagerContext context)
event
- the underlying MapEventmap
- the new event's sourceconvKey
- the Converter to view the underlying MapEvent's keyconvVal
- the Converter to view the underlying MapEvent's valuescontext
- the BackingMapManagerContext necessary to emulate the BinaryEntry interfaceMethod Detail |
---|
public java.lang.Object getKey()
getKey
in class MapEvent
public java.lang.Object getOldValue()
The old value represents a value deleted from or updated in a map. It is always null for "insert" notifications.
getOldValue
in class MapEvent
public java.lang.Object getNewValue()
The new value represents a new value inserted into or updated in a map. It is always null for "delete" notifications.
getNewValue
in class MapEvent
public java.util.Map.Entry getOldEntry()
getOldEntry
in class MapEvent
public java.util.Map.Entry getNewEntry()
getNewEntry
in class MapEvent
public MapEvent getMapEvent()
public BackingMapManagerContext getContext()
public Converter getConverterKeyUp()
public Converter getConverterValueUp()
public void setKey(java.lang.Object oKey)
oKey
- the converted key valuepublic void setOldValue(java.lang.Object oValue)
oValue
- the new converted "old" valuepublic void setNewValue(java.lang.Object oValue)
oValue
- the new converted "new" valuepublic boolean isKeyConverted()
public boolean isOldValueConverted()
public boolean isNewValueConverted()
public void clearConverted()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |