E - is the templated type of the elements in the pool.public abstract class AbstractNoPool<E> extends Object implements Pool<E>
Pool that is actually NOT pooling at all. It always
creates a fresh instance on Pool.borrow() and does nothing on release(Object).| Constructor and Description |
|---|
AbstractNoPool()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
This method determines if the pool is empty.
|
void |
release(E element)
This method releases the given
element. |
public boolean isEmpty()
PoolisEmpty in interface Pool<E>true if the pool is empty.Collection.isEmpty()public void release(E element)
Poolelement. It will be put back into the pool. element is NOT in use anymore. Therefore no reference
should exist on the element and you should NOT have passed the element to a third-party library
that may keep it in some cache.release in interface Pool<E>element - is the element to add to the pool.Collection.add(Object)Copyright © 2001–2016 mmm-Team. All rights reserved.