|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.cache.BackingMapBinaryEntry
com.tangosol.net.cache.ReadWriteBackingMap.Entry
public class ReadWriteBackingMap.Entry
A queue entry that is scheduled to come out of the front of the queue no earlier than some specific point in time.
Field Summary |
---|
Fields inherited from class com.tangosol.net.cache.BackingMapBinaryEntry |
---|
m_binKey, m_binValue, m_binValueOrig, m_ctx, m_oKey, m_oValue, m_oValueOrig, NO_VALUE |
Constructor Summary | |
---|---|
ReadWriteBackingMap.Entry(Binary binKey, Binary binValue, Binary binValueOrig, BackingMapManagerContext ctx) Construct an Entry with just a key. |
Method Summary | |
---|---|
Map |
getBackingMap() Obtain a reference to the backing map that this Entry corresponds to. The returned Map should be used in a read-only manner. |
Binary |
getChangedBinaryValue() Return the Binary value changed by the BinaryEntryStore. |
long |
getRipeMillis() Determine when the entry becomes ripe to be persisted. |
boolean |
isChanged() Specifies whether or not the underlying value has been changed during BinaryEntryStore operations. |
boolean |
isRemoved() Specifies whether or not the underlying value has been removed during BinaryEntryStore operations. |
protected void |
setRipeMillis(long ldtMillis) Specify the times when the entry has to be persisted. |
Object |
setValue(Object oValue) Store the value corresponding to this entry. If the entry does not exist, then the entry will be created by invoking this method, even with a null value (assuming the Map supports null values). |
protected void |
startTracking() Start tracking changes by the BinaryEntryStore. |
protected void |
stopTracking() Stop tracking changes by the BinaryEntryStore. |
void |
updateBinaryValue(Binary binValue) Update the binary value for this entry. <p/> Passing a non-null binary is functionally equivalent to: setValue(getContext().getValueFromInternalConverter().convert(binValue));Passing null value is functionally equivalent to removing the entry. remove(false); |
Methods inherited from class com.tangosol.net.cache.BackingMapBinaryEntry |
---|
equals, extract, getBinaryKey, getBinaryValue, getContext, getKey, getOriginalBinaryValue, getOriginalValue, getSerializer, getValue, hashCode, isPresent, remove, setValue, toString, update |
Constructor Detail |
---|
public ReadWriteBackingMap.Entry(Binary binKey, Binary binValue, Binary binValueOrig, BackingMapManagerContext ctx)
binKey
- the Binary keybinValue
- the Binary value; could be null representing a non-existing or removed entrybinValueOrig
- an original Binary value; could be null representing a non-existing entryctx
- the BackingMapManagerContextMethod Detail |
---|
public Object setValue(Object oValue)
setValue
in interface InvocableMap.Entry
setValue
in interface Map.Entry
setValue
in class BackingMapBinaryEntry
oValue
- the new value for this Entrypublic void updateBinaryValue(Binary binValue)
setValue(getContext().getValueFromInternalConverter().convert(binValue));Passing null value is functionally equivalent to removing the entry.
remove(false);
updateBinaryValue
in interface BinaryEntry
updateBinaryValue
in class BackingMapBinaryEntry
binValue
- a raw binary value to for this entry or nullpublic Map getBackingMap()
getBackingMap
in interface BinaryEntry
getBackingMap
in class BackingMapBinaryEntry
public long getRipeMillis()
protected void setRipeMillis(long ldtMillis)
ldtMillis
- the time when the entry becomes ripepublic boolean isChanged()
public boolean isRemoved()
public Binary getChangedBinaryValue()
protected void startTracking()
protected void stopTracking()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |