|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.InvocableMapHelper.RoutingMapTriggerEntry
protected static class InvocableMapHelper.RoutingMapTriggerEntry
MapTrigger.Entry wrapper that routes the getValue() call onto getOriginalValue().
Field Summary | |
---|---|
protected InvocableMap.Entry |
m_entry The underlying entry. |
Constructor Summary | |
---|---|
protected |
InvocableMapHelper.RoutingMapTriggerEntry(BinaryEntry entry) Construct a routing entry. |
protected |
InvocableMapHelper.RoutingMapTriggerEntry(MapTrigger.Entry entry) Construct a routing entry. |
Method Summary | |
---|---|
java.lang.Object |
extract(ValueExtractor extractor) Extract a value out of the Entry's value. |
java.lang.Object |
getKey() Return the key corresponding to this entry. |
java.lang.Object |
getOriginalValue() Determine the value that existed before the start of the mutating operation that is being evaluated by the trigger. |
java.lang.Object |
getValue() Return an OriginalValue from the underlying entry. |
boolean |
isOriginalPresent() Determine whether or not the Entry existed before the start of the mutating operation that is being evaluated by the trigger. |
boolean |
isPresent() Determine if this Entry exists in the Map. |
void |
remove(boolean fSynthetic) Remove this Entry from the Map if it is present in the Map. |
java.lang.Object |
setValue(java.lang.Object oValue) Store the value corresponding to this entry. |
void |
setValue(java.lang.Object oValue, boolean fSynthetic) Store the value corresponding to this entry. |
void |
update(ValueUpdater updater, java.lang.Object oValue) Update the Entry's value. |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Field Detail |
---|
protected InvocableMap.Entry m_entry
Constructor Detail |
---|
protected InvocableMapHelper.RoutingMapTriggerEntry(MapTrigger.Entry entry)
entry
- the underlying MapTrigger.Entryprotected InvocableMapHelper.RoutingMapTriggerEntry(BinaryEntry entry)
entry
- the underlying BinaryEntryMethod Detail |
---|
public java.lang.Object getKey()
InvocableMap.Entry.isPresent()
, and to create the entry for the key, use InvocableMap.Entry.setValue(java.lang.Object)
.getKey
in interface InvocableMap.Entry
getKey
in interface java.util.Map.Entry
public java.lang.Object getValue()
getValue
in interface InvocableMap.Entry
getValue
in interface java.util.Map.Entry
public java.lang.Object extract(ValueExtractor extractor)
extract
in interface QueryMap.Entry
extractor
- a ValueExtractor to apply to the Entry's valuepublic java.lang.Object getOriginalValue()
MapTrigger.Entry
getOriginalValue
in interface MapTrigger.Entry
java.lang.UnsupportedOperationException
public java.lang.Object setValue(java.lang.Object oValue)
InvocableMap.Entry
setValue
in interface InvocableMap.Entry
setValue
in interface java.util.Map.Entry
oValue
- the new value for this Entryjava.lang.UnsupportedOperationException
public void setValue(java.lang.Object oValue, boolean fSynthetic)
InvocableMap.Entry
Unlike the other form of setValue
, this form does not return the previous value, and as a result may be significantly less expensive (in terms of cost of execution) for certain Map implementations.
setValue
in interface InvocableMap.Entry
oValue
- the new value for this EntryfSynthetic
- pass true only if the insertion into or modification of the Map should be treated as a synthetic eventjava.lang.UnsupportedOperationException
public void update(ValueUpdater updater, java.lang.Object oValue)
InvocableMap.Entry
Object oTarget = entry.getValue(); updater.update(oTarget, oValue); entry.setValue(oTarget, false);The benefit of using this method is that it may allow the Entry implementation to significantly optimize the operation, such as for purposes of delta updates and backup maintenance.
update
in interface InvocableMap.Entry
updater
- a ValueUpdater used to modify the Entry's valueoValue
- the new value for this Entryjava.lang.UnsupportedOperationException
public void remove(boolean fSynthetic)
InvocableMap.Entry
This method supports both the operation corresponding to Map.remove(java.lang.Object)
as well as synthetic operations such as eviction. If the containing Map does not differentiate between the two, then this method will always be identical to InvocableMap.this.remove(getKey()).
remove
in interface InvocableMap.Entry
fSynthetic
- pass true only if the removal from the Map should be treated as a synthetic eventjava.lang.UnsupportedOperationException
public boolean isPresent()
InvocableMap.Entry
InvocableMap.Entry.setValue(Object)
or InvocableMap.Entry.setValue(Object, boolean)
. If the Entry is present, it can be destroyed by calling InvocableMap.Entry.remove(boolean)
.isPresent
in interface InvocableMap.Entry
java.lang.UnsupportedOperationException
public boolean isOriginalPresent()
MapTrigger.Entry
isOriginalPresent
in interface MapTrigger.Entry
java.lang.UnsupportedOperationException
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |