Package com.tangosol.net.cache
Class ReadWriteBackingMap.Entry
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.cache.BackingMapBinaryEntry
com.tangosol.net.cache.ReadWriteBackingMap.Entry
- All Implemented Interfaces:
- BinaryEntry,- InvocableMap.Entry,- MapTrigger.Entry,- QueryMap.Entry,- Map.Entry
- Enclosing class:
- ReadWriteBackingMap
A queue entry that is scheduled to come out of the front of the
 queue no earlier than some specific point in time.
- Since:
- Coherence 3.6
- 
Nested Class SummaryNested classes/interfaces inherited from class com.tangosol.util.BaseBase.LoggingWriter
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final com.tangosol.internal.tracing.SpanThe parent tracing span.Fields inherited from class com.tangosol.net.cache.BackingMapBinaryEntrym_binKey, m_binValue, m_binValueOrig, m_ctx, m_fSynthetic, m_ldtExpiry, m_oKey, m_oValue, m_oValueOrig
- 
Constructor SummaryConstructorsConstructorDescriptionEntry(Binary binKey, Binary binValue, Binary binValueOrig, long cExpiry, BackingMapManagerContext ctx) Construct an Entry with just a key.
- 
Method SummaryModifier and TypeMethodDescriptionvoidexpire(long cMillis) Update the entry with the specified expiry delay.Obtain a reference to the backing map that this Entry corresponds to.Return the Binary value changed by the BinaryEntryStore.protected com.tangosol.internal.tracing.SpanReturn the associated parent Span if any.longDetermine when the entry becomes ripe to be persisted.booleanSpecifies whether or not the underlying value has been changed during BinaryEntryStore operations.protected voidsetRipeMillis(long ldtMillis) Specify the times when the entry has to be persisted.Store the value corresponding to this entry.protected voidStart tracking changes by the BinaryEntryStore.protected voidStop tracking changes by the BinaryEntryStore.voidupdateBinaryValue(Binary binValue) Update the binary value for this entry.Methods inherited from class com.tangosol.net.cache.BackingMapBinaryEntrycalculateExpiry, equals, extract, getBackingMapContext, getBinaryKey, getBinaryValue, getContext, getExpiry, getKey, getOriginalBinaryValue, getOriginalValue, getSerializer, getValue, hashCode, isOriginalPresent, isPresent, isReadOnly, isSynthetic, remove, setValue, toString, update, updateBinaryValueMethods inherited from class com.tangosol.util.Baseazzert, 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, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, newHashMap, newHashMap, newHashSet, newHashSet, 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, waitMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tangosol.util.BinaryEntrygetAssociatedEntry, getAssociatedEntry, getIndexMap, getKeyPartition, isValueChanged, isValueLoaded, isValueRemoved, isValueUpdatedMethods inherited from interface com.tangosol.util.InvocableMap.EntryasBinaryEntry, getValue, getValueMethods inherited from interface com.tangosol.util.QueryMap.EntryextractFromKey, extractFromValue
- 
Field Details- 
f_spanParentprotected final com.tangosol.internal.tracing.Span f_spanParentThe parent tracing span.
 
- 
- 
Constructor Details- 
Entrypublic Entry(Binary binKey, Binary binValue, Binary binValueOrig, long cExpiry, BackingMapManagerContext ctx) Construct an Entry with just a key.- Parameters:
- binKey- the Binary key
- binValue- the Binary value; could be null representing a non-existing or removed entry
- binValueOrig- an original Binary value; could be null representing a non-existing entry
- cExpiry- the expiry delay
- ctx- the BackingMapManagerContext
 
 
- 
- 
Method Details- 
setValueStore 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).- Specified by:
- setValuein interface- InvocableMap.Entry
- Specified by:
- setValuein interface- Map.Entry
- Overrides:
- setValuein class- BackingMapBinaryEntry
- Parameters:
- oValue- the new value for this Entry
- Returns:
- the previous value of this Entry, or null if the Entry did not exist
 
- 
updateBinaryValueUpdate the binary value for this entry.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); - Specified by:
- updateBinaryValuein interface- BinaryEntry
- Overrides:
- updateBinaryValuein class- BackingMapBinaryEntry
- Parameters:
- binValue- new binary value to be stored in this entry or null
 
- 
getBackingMapObtain a reference to the backing map that this Entry corresponds to. The returned Map should be used in a read-only manner.Note: This method is a shortcut for the getBackingMapContext().getBackingMap()call. As of Coherence 3.7, the returned type has been narrowed to ObservableMap.- Specified by:
- getBackingMapin interface- BinaryEntry
- Overrides:
- getBackingMapin class- BackingMapBinaryEntry
- Returns:
- the backing map reference; null if the entry does not have any backing map association
 
- 
expirepublic void expire(long cMillis) Update the entry with the specified expiry delay.Note: this method only has an effect only if the associated backing map implements the CacheMapinterface- Specified by:
- expirein interface- BinaryEntry
- Overrides:
- expirein class- BackingMapBinaryEntry
- Parameters:
- cMillis- the number of milliseconds until the entry will expire; pass- CacheMap.EXPIRY_DEFAULTto use the default expiry setting; pass- CacheMap.EXPIRY_NEVERto indicate that the entry should never expire
 
- 
getRipeMillispublic long getRipeMillis()Determine when the entry becomes ripe to be persisted.- Returns:
- the time at which the entry becomes ripe
 
- 
setRipeMillisprotected void setRipeMillis(long ldtMillis) Specify the times when the entry has to be persisted. This property is immutable once set.- Parameters:
- ldtMillis- the time when the entry becomes ripe
 
- 
isChangedpublic boolean isChanged()Specifies whether or not the underlying value has been changed during BinaryEntryStore operations.- Returns:
- true iff during the BinaryEntryStore operations any of the value mutating methods were called (including remove)
 
- 
getChangedBinaryValueReturn the Binary value changed by the BinaryEntryStore.- Returns:
- the changed Binary value, or null if the entry was removed
 
- 
startTrackingprotected void startTracking()Start tracking changes by the BinaryEntryStore.
- 
stopTrackingprotected void stopTracking()Stop tracking changes by the BinaryEntryStore.
- 
getParentSpanprotected com.tangosol.internal.tracing.Span getParentSpan()Return the associated parent Span if any.- Returns:
- the parent span or null
 
 
-