org.apache.avalon.excalibur.pool
インタフェース Recyclable
- すべてのスーパーインタフェース:
- Poolable
- 既知の実装クラスの一覧:
- AbstractJdbcConnection
- public interface Recyclable
- extends Poolable
This interface standardizes the behaviour of a recyclable object.
A recyclable object is defined as an object that can be used to
encapsulate another object without being altered by its content.
Therefore, a recyclable object may be recycled and reused many times.
This is helpful in cases where recyclable objects are continously
created and destroyed, causing a much greater amount of garbage to
be collected by the JVM garbage collector. By making it recyclable,
it is possible to reduce the GC execution time, thus incrementing the
overall performance of a process and decrementing the chance of
memory overflow.
Every implementation must provide their own method to allow this
recyclable object to be reused by setting its content.
- 導入されたバージョン:
- 4.0
- バージョン:
- CVS $Revision: 1.5 $ $Date: 2001/12/11 09:53:32 $
- 作成者:
- Stefano Mazzocchi, Peter Donald
メソッドの概要 |
void |
recycle()
This method should be implemented to remove all costly resources
in object. |
recycle
public void recycle()
- This method should be implemented to remove all costly resources
in object. These resources can be object references, database connections,
threads, etc. What is categorised as "costly" resources is determined on
a case by case analysis.
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."