| 
 | 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.Base
com.tangosol.util.Base
       com.tangosol.net.cache.BackingMapBinaryEntry
com.tangosol.net.cache.BackingMapBinaryEntry
           com.tangosol.net.cache.ReadWriteBackingMap.Entry
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_ldtExpiry, m_oKey, m_oValue, m_oValueOrig, NO_VALUE | 
| Constructor Summary | |
|---|---|
| ReadWriteBackingMap.Entry(Binary binKey, Binary binValue, Binary binValueOrig, long cExpiry, BackingMapManagerContext ctx)Construct an Entry with just a key. | |
| Method Summary | |
|---|---|
|  void | expire(long cMillis)Update the entry with the specified expiry delay. | 
|  ObservableMap | getBackingMap()Obtain a reference to the backing map that this Entry corresponds to. | 
|  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. | 
|  java.lang.Object | setValue(java.lang.Object oValue)Store the value corresponding to this entry. | 
| 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. | 
| Methods inherited from class com.tangosol.net.cache.BackingMapBinaryEntry | 
|---|
| calculateExpiry, equals, extract, getBackingMapContext, getBinaryKey, getBinaryValue, getContext, getExpiry, getKey, getOriginalBinaryValue, getOriginalValue, getSerializer, getValue, hashCode, isPresent, isReadOnly, remove, setValue, toString, update, updateBinaryValue | 
| Constructor Detail | 
|---|
public ReadWriteBackingMap.Entry(Binary binKey,
                                 Binary binValue,
                                 Binary binValueOrig,
                                 long cExpiry,
                                 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 entrycExpiry - the expiry delayctx - the BackingMapManagerContext| Method Detail | 
|---|
public java.lang.Object setValue(java.lang.Object oValue)
setValue in interface InvocableMap.EntrysetValue in interface java.util.Map.EntrysetValue in class BackingMapBinaryEntryoValue - the new value for this Entrypublic void updateBinaryValue(Binary binValue)
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);
updateBinaryValue in interface BinaryEntryupdateBinaryValue in class BackingMapBinaryEntrybinValue - new binary value to be stored in this entry or nullpublic ObservableMap getBackingMap()
Note: This method is a shortcut for the getBackingMapContext().getBackingMap() call. As of Coherence 3.7, the returned type has been narrowed to ObservableMap.
getBackingMap in interface BinaryEntrygetBackingMap in class BackingMapBinaryEntrypublic void expire(long cMillis)
Note: this method only has an effect only if the associated backing map implements the CacheMap interface
expire in interface BinaryEntryexpire in class BackingMapBinaryEntrycMillis - the number of milliseconds until the entry will expire; pass CacheMap.EXPIRY_DEFAULT to use the default expiry setting; pass CacheMap.EXPIRY_NEVER to indicate that the entry should never expirepublic 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® 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 | |||||||