|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPoolable
Marks an object as being aware that is to be stored into a Pool
.
This gives the object a last chance to reset any state.
Method Summary | |
---|---|
void |
discardFromPool()
Invoked just as a Pool discards an object (for lack of use). |
void |
resetForPool()
Invoked by a Pool
just before the object is added to the pool. |
Method Detail |
---|
void resetForPool()
Pool
just before the object is added to the pool.
The object should return its state to how it was when freshly instantiated
(or at least, its state should be indistinguishable from a freshly
instantiated instance).
void discardFromPool()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |