|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.webmacro.util.ScalablePool
This is a scalable pool. It reduces locking contention by multiplexing across a number of internal pools. Each of those pools is a stack which can grow to be as large as necessary to maintain a constant supply of the pooled objects.
| Constructor Summary | |
ScalablePool()
Create a new Pool. |
|
| Method Summary | |
java.lang.Object |
get()
Get an item from the pool |
void |
put(java.lang.Object o)
Add an item to the pool for later re-use |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ScalablePool()
| Method Detail |
public void put(java.lang.Object o)
put in interface Poolpublic java.lang.Object get()
get in interface Pool
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||