|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
CoherenceApplicationEdition
com.tangosol.net.cache.ReadWriteBackingMap.ReadQueue
public class ReadWriteBackingMap.ReadQueue
A queue of keys that should be read from the underlying CacheStore.
Constructor Summary | |
---|---|
protected |
ReadWriteBackingMap.ReadQueue() Construct a ReadQueue. |
Method Summary | |
---|---|
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 |
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. |
Constructor Detail |
---|
protected ReadWriteBackingMap.ReadQueue()
Method Detail |
---|
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)
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()
protected List getKeyList()
protected Map getKeyMap()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |