|
Protomatter Classes v1.1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.pool.SimpleObjectPool | +--com.protomatter.pool.GrowingObjectPool | +--com.protomatter.util.BlockingQueue
A thread-blocking queue. The getNextObject() method blocks until there's something added to the queue.
Fields inherited from class com.protomatter.pool.SimpleObjectPool |
sync |
Constructor Summary | |
BlockingQueue()
Create a new queue. |
Method Summary | |
void |
add(java.lang.Object object)
Add an object to the queue. |
ObjectPoolObject |
createObjectPoolObject()
To be implemented by sub-classes. |
java.lang.Object |
getNextObject()
Get the next object in the queue. |
int |
getQueueLength()
Get the length of the queue (number of work elements yet to be processed). |
Methods inherited from class com.protomatter.pool.GrowingObjectPool |
checkinPoolObject, getCreateWaitTime, getCurrentPoolSize, getInitialObjectPoolSize, getMaxObjectPoolSize, getNextPoolObject, getObjectPoolGrowSize, getObjectPoolSize, getPool, init, reInitializeObjectPool, setMaxObjectPoolSize |
Methods inherited from class com.protomatter.pool.SimpleObjectPool |
checkin, checkout, getCheckedOutObjects, getNumWaiters, getObjectsInUse, getSyncObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlockingQueue()
Method Detail |
public ObjectPoolObject createObjectPoolObject()
SimpleObjectPool
createObjectPoolObject
in class SimpleObjectPool
com.protomatter.pool.SimpleObjectPool
java.lang.Exception
- If there is a problem creating the next
object for the pool -- this is implementation specific.public int getQueueLength()
public final java.lang.Object getNextObject()
public final void add(java.lang.Object object)
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |