public class ReadWriteBackingMap.ReadQueue
extends com.tangosol.license.CoherenceCommunityEdition
com.tangosol.license.LicensedObject.LicenseData
Base.LoggingWriter, Base.StackFrame
Modifier | Constructor and Description |
---|---|
protected |
ReadQueue()
Construct a ReadQueue.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object oKey)
Add a key to the queue.
|
void |
clear()
Remove all keys from the queue.
|
protected List |
getKeyList()
Return a list of keys in the queue.
|
protected Map<Object,com.tangosol.internal.tracing.Span> |
getKeyMap()
Return a map of keys in the queue.
|
Object |
peek()
Wait for a key to be added to the queue and return it without
removing it from the queue.
|
Object |
peek(long cMillis)
Wait for a key (up to the specified wait time) to be added to the
queue and return it without removing it from the queue, or null if
the specified wait time has passed).
|
boolean |
remove(Object oKey)
Remove a key from the queue if the key is in the queue.
|
protected ReadWriteBackingMap.ReadLatch |
select(long cWaitMillis)
Select the next key from the refresh-ahead queue that is a candidate
for an asynchronous load.
|
String |
toString()
For debugging purposes, present the queue in human-readable format.
|
containsEdition, ensureEdition, getClassLicenseData, getClassLicenseData, getLicenseData, getLicenseFailure, isExpired, main, printLicense, retain, retain, setLicenseData
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
public boolean add(Object oKey)
oKey
- the key objectpublic Object peek()
public Object peek(long cMillis)
cMillis
- the number of ms to wait for a key in the queue; pass
-1 to wait indefinitely or 0 for no waitpublic boolean remove(Object oKey)
oKey
- the key objectprotected ReadWriteBackingMap.ReadLatch select(long cWaitMillis)
This method performs the selection process by iterating through the refresh-ahead queue starting with the first key in the queue. If the queue is empty, this method will block until a key is added to the queue. A key is skipped if it cannot be locked within the specified wait time.
If a candidate key is found, a new ReadLatch for the key is placed in the control map and returned; otherwise, null is returned.
cWaitMillis
- the maximum amount of time (in milliseconds) to
wait to select a key and acquire a latch on it;
pass -1 to wait indefinitelypublic void clear()
public String toString()
toString
in class com.tangosol.license.CoherenceCommunityEdition
protected List getKeyList()