org.webmacro.util
Interface Pool
- All Known Implementing Classes:
- UPool, ScalablePool
- public interface Pool
A pool is a stack-like container which you can add and remove
objects from. It is useful for recycling objects rather than
re-creating them. See ScalablePool and UPool.
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 |
put
public void put(java.lang.Object o)
- Add an item to the pool for later re-use
get
public java.lang.Object get()
- Get an item from the pool