|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectEDU.oswego.cs.dl.util.concurrent.LinkedQueue
org.archive.queue.LinkedQueue
public class LinkedQueue
Version of LinkedQueue (from util.concurrent) which gives more options for understanding its contents: a running count of entries and an iterator.
| Nested Class Summary | |
|---|---|
class |
LinkedQueue.LinkedQueueIterator
Iterator over contents of a org.archive.queue.LinkedQueue. |
| Field Summary | |
|---|---|
protected int |
count
Count of items in queue. |
| Fields inherited from class EDU.oswego.cs.dl.util.concurrent.LinkedQueue |
|---|
head_, last_, putLock_, waitingForTake_ |
| Constructor Summary | |
|---|---|
LinkedQueue()
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
extract()
|
int |
getCount()
Return a count of entries in the queue. |
protected void |
insert(java.lang.Object x)
|
java.util.Iterator |
iterator()
|
| Methods inherited from class EDU.oswego.cs.dl.util.concurrent.LinkedQueue |
|---|
isEmpty, offer, peek, poll, put, take |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int count
| Constructor Detail |
|---|
public LinkedQueue()
| Method Detail |
|---|
protected java.lang.Object extract()
extract in class EDU.oswego.cs.dl.util.concurrent.LinkedQueueprotected void insert(java.lang.Object x)
insert in class EDU.oswego.cs.dl.util.concurrent.LinkedQueuepublic int getCount()
public java.util.Iterator iterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||