public class ReadWriteBackingMap.Entry extends BackingMapBinaryEntry
Base.LoggingWriter, Base.StackFramem_binKey, m_binValue, m_binValueOrig, m_ctx, m_ldtExpiry, m_oKey, m_oValue, m_oValueOrig| Constructor and Description |
|---|
Entry(Binary binKey, Binary binValue, Binary binValueOrig, long cExpiry, BackingMapManagerContext ctx)
Construct an Entry with just a key.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
calculateExpiry, equals, extract, getBackingMapContext, getBinaryKey, getBinaryValue, getContext, getExpiry, getKey, getOriginalBinaryValue, getOriginalValue, getSerializer, getValue, hashCode, isPresent, isReadOnly, isSynthetic, remove, setValue, toString, update, updateBinaryValueazzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, waitclone, finalize, getClass, notify, notifyAll, wait, wait, waitisValueChanged, isValueLoaded, isValueRemoved, isValueUpdatedextractFromKey, extractFromValuecomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic 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 BackingMapManagerContextpublic Object setValue(Object oValue)
setValue in interface InvocableMap.EntrysetValue in interface 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 Binary getChangedBinaryValue()
protected void startTracking()
protected void stopTracking()