|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PoolableObject<T>
| Method Summary | |
|---|---|
void |
activate(T t)
is invoked on every instance that has been passivated before it is borrowed from the pool. |
void |
destroy(T t)
is invoked on every instance when it is being "dropped" from the pool (whether due to the response from validateObject, or for reasons specific to the pool implementation.) |
T |
make()
is called whenever a new instance is needed. |
void |
passivate(T t)
is invoked on every instance when it is returned to the pool. |
boolean |
validate(T t)
is invoked on activated instances to make sure they can be borrowed from the pool. validateObject may also be used to test an instance being returned to the pool before it is passivated. |
| Method Detail |
|---|
T make()
throws PoolException
PoolExceptionboolean validate(T t)
t -
void destroy(T t)
t -
void activate(T t)
throws PoolException
t -
PoolExceptionvoid passivate(T t)
t -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||