|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectEDU.oswego.cs.dl.util.concurrent.BoundedBuffer
org.apache.cocoon.thread.impl.BoundedQueue
Efficient array-based bounded buffer class. Adapted from CPJ, chapter 8, which describes design.
[ Introduction to this package. ]
| Field Summary |
| Fields inherited from class EDU.oswego.cs.dl.util.concurrent.BoundedBuffer |
array_, emptySlots_, putMonitor_, putPtr_, takePtr_, usedSlots_ |
| Constructor Summary | |
BoundedQueue()
Create a buffer with the current default capacity. |
|
BoundedQueue(int capacity)
Create a BoundedQueue with the given capacity. |
|
| Method Summary | |
int |
getQueueSize()
DOCUMENT ME! |
| Methods inherited from class EDU.oswego.cs.dl.util.concurrent.BoundedBuffer |
capacity, extract, incEmptySlots, incUsedSlots, insert, offer, peek, poll, put, size, take |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface EDU.oswego.cs.dl.util.concurrent.Channel |
offer, peek, poll, put, take |
| Constructor Detail |
public BoundedQueue()
public BoundedQueue(int capacity)
throws IllegalArgumentException
capacity - The capacity
IllegalArgumentException - if capacity less or equal to zero| Method Detail |
public int getQueueSize()
getQueueSize in interface Queue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||