commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nair, Anand" <AN...@ea.com>
Subject Looking for WHEN_POOLSIZEMAX_BLOCK
Date Tue, 18 Jan 2005 23:23:54 GMT
Hello,

 

There does not seem to an API which can determine the collective size of
the commons collection pool. What I am looking for is a way to tell the
factory block until the collection size goes below a threshold value.
Basically I am interested in heap size consumed by the pool , since
there is not a good way to figure that out in java ,  I guess it would
be helpful if there is a way we can associate size of the object to the
pooled object so that factory framework can figure that out. Something
like

 

Class MyObject implements MemorySizable{

{

            //Estimated size of the object

            Int size_in_bytes  = 8;

 

            Public int getSizeinBytes()

            {

                        Return size_in_bytes;

            }

}

 

Let me know if you have any suggestions or I missed something which can
provide me the functionality.

 

Thanks

Anand


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message