public class ReadWriteBackingMap.Entry extends BackingMapBinaryEntry
Base.LoggingWriter, Base.StackFrame
Modifier and Type | Field and Description |
---|---|
protected com.tangosol.internal.tracing.Span |
f_spanParent
The parent tracing span.
|
m_binKey, m_binValue, m_binValueOrig, m_ctx, m_fSynthetic, 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.
|
protected com.tangosol.internal.tracing.Span |
getParentSpan()
Return the associated parent Span if any.
|
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, isOriginalPresent, isPresent, isReadOnly, isSynthetic, remove, setValue, toString, update, updateBinaryValue
azzert, 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, getProcessRandom, 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, 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, wait
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isValueChanged, isValueLoaded, isValueRemoved, isValueUpdated
getValue
extractFromKey, extractFromValue
comparingByKey, comparingByKey, comparingByValue, comparingByValue
protected final com.tangosol.internal.tracing.Span f_spanParent
public 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.Entry
setValue
in interface Map.Entry
setValue
in class BackingMapBinaryEntry
oValue
- 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 BinaryEntry
updateBinaryValue
in class BackingMapBinaryEntry
binValue
- 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 BinaryEntry
getBackingMap
in class BackingMapBinaryEntry
public void expire(long cMillis)
Note: this method only has an effect only if the associated backing map
implements the CacheMap
interface
expire
in interface BinaryEntry
expire
in class BackingMapBinaryEntry
cMillis
- 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()
protected com.tangosol.internal.tracing.Span getParentSpan()