|
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.license.LicensedObject
com.tangosol.license.CoherenceDataGridEdition
com.tangosol.license.CoherenceApplicationEdition
com.tangosol.net.cache.ReadWriteBackingMap.ReadQueue
public class ReadWriteBackingMap.ReadQueue
A queue of keys that should be read from the underlying CacheStore.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.license.LicensedObject |
---|
com.tangosol.license.LicensedObject.LicenseData |
Constructor Summary | |
---|---|
protected |
ReadWriteBackingMap.ReadQueue() Construct a ReadQueue. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object oKey) Add a key to the queue. |
void |
clear() Remove all keys from the queue. |
protected java.util.List |
getKeyList() Return a list of keys in the queue. |
protected java.util.Map |
getKeyMap() Return a map of keys in the queue. |
java.lang.Object |
peek() Wait for a key to be added to the queue and return it without removing it from the queue. |
java.lang.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(java.lang.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. |
java.lang.String |
toString() For debugging purposes, present the queue in human-readable format. |
Methods inherited from class com.tangosol.license.CoherenceApplicationEdition |
---|
printLicense |
Methods inherited from class com.tangosol.license.LicensedObject |
---|
containsEdition, ensureEdition, getClassLicenseData, getClassLicenseData, getLicenseData, getLicenseFailure, isExpired, main, printLicense, retain, retain, setLicenseData |
Constructor Detail |
---|
protected ReadWriteBackingMap.ReadQueue()
Method Detail |
---|
public boolean add(java.lang.Object oKey)
oKey
- the key objectpublic java.lang.Object peek()
public java.lang.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(java.lang.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 java.lang.String toString()
toString
in class com.tangosol.license.CoherenceApplicationEdition
protected java.util.List getKeyList()
protected java.util.Map getKeyMap()
Note: The map returned from this method is not thread-safe; therefore, a lock on this ReadQueue must be obtained before accessing the map
|
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 |