public interface ICheckedOutListManager<T>
IPooledObject
items.
All objects in a list are released and added back to their respective
pools when the release(T)
method is invoked for that list.Modifier and Type | Method and Description |
---|---|
void |
activate(T key)
Activates the specified list.
|
void |
add(T key,
IPooledObject<T> o)
Adds an
IPooledObject to the list of checked out objects --
if and only if this list is active. |
void |
deactivate(T key)
Deactivates the specified list.
|
boolean |
isActive(T key)
Returns true if the specified list of checked out items is active for this manager.
|
void |
release(T key)
Releases and repools all items in the list of checked out objects.
|
void add(T key, IPooledObject<T> o)
IPooledObject
to the list of checked out objects --
if and only if this list is active.key
- Checked out list key.o
- Pooled object.void release(T key)
key
- Checked out list key.boolean isActive(T key)
key
- Checked out list key.void activate(T key)
key
- Checked out list key.void deactivate(T key)
key
- Checked out list key.