|
|||||||||
| Home >> All >> org >> mule >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mule.util
Class MTQueue

java.lang.Objectorg.mule.util.MTQueue
- public class MTQueue
- extends java.lang.Object
MTQueue A multithreaded blocking queue, useful for
implementing producer-consumer style threading patterns.
- Version:
- $ Revision: 1.1.1.1 $
| Field Summary | |
private java.util.LinkedList |
list
|
private static org.apache.commons.logging.Log |
log
The logger for this class |
private long |
timeout
|
| Constructor Summary | |
MTQueue()
|
|
| Method Summary | |
void |
add(java.lang.Object object)
adds a new object to the end of the queue |
java.lang.Object |
remove()
Removes the first object from the queue, blocking until one is available |
java.lang.Object |
removeNoWait()
Removes the first object from the queue without blocking. |
int |
size()
Returns the current number of object in the queue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static final transient org.apache.commons.logging.Log log
- The logger for this class
list
private java.util.LinkedList list
timeout
private long timeout
| Constructor Detail |
MTQueue
public MTQueue()
| Method Detail |
size
public int size()
- Returns the current number of object in the queue
add
public void add(java.lang.Object object)
- adds a new object to the end of the queue
remove
public java.lang.Object remove()
- Removes the first object from the queue, blocking until one is available
removeNoWait
public java.lang.Object removeNoWait()
- Removes the first object from the queue without blocking.
|
|||||||||
| Home >> All >> org >> mule >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.mule.util.MTQueue