|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjena.atlas.lib.PoolBase<T>
public class PoolBase<T>
A Pool of objects. Base implements a non-blocking pool (returns null on no entry) with infinite upper bound. Set effective size by creating the right number of entries when created.
| Constructor Summary | |
|---|---|
PoolBase()
|
|
| Method Summary | |
|---|---|
T |
get()
Get an item from the pool - return null if the pool is empty |
boolean |
isEmpty()
|
void |
put(T item)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoolBase()
| Method Detail |
|---|
public void put(T item)
put in interface Pool<T>public T get()
get in interface Pool<T>public boolean isEmpty()
isEmpty in interface Pool<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||