at.jku.risc.stout.urau.util
Modifier and Type | Method and Description |
---|---|
void |
free(T obj)
Calls the method Poolable.cleanUp() to clean the object and
returns it into this pool.
|
static <T extends Poolable> |
getPool(T sample)
Returns a Pool for a certain type of objects.
|
T |
obtain()
Pulls an object out of this Pool or creates a new object if
the pool is empty.
|
void |
removePool()
Removes this pool and let the garbage collector do it's work.
|
public void free(T obj)
public static <T extends Poolable> Pool<T> getPool(T sample)
public T obtain()
public void removePool()