jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gierski, Christophe" <Christophe_Gier...@bmc.com>
Subject RE: get method return null for existing key
Date Mon, 26 Mar 2007 07:49:18 GMT


Thanks for the answer.


I have lookup the code and it seems that the purgatory is back ended by
a LRUMapJCS when a purgatory size is grather than 0 and by a simple
HashMap where the purgatory size is less than 0.


The issue is that the purgatory could age out items without writing them
to the disk as the method processRemovedLRU() to process the object
removal do just a log work :


    protected void processRemovedLRU( Object key, Object value )


        if ( log.isDebugEnabled() )


            log.debug( "Removing key [" + key + "] from key store, value
[" + value + "]" );

            log.debug( "Key store size [" + this.size() + "]" );





My configuration says that elements need to be eternal, so do the
purgatory is allowed to remove elements without respecting the contract
of eternal ?

Is it a bug or a misunderstood feature of the purgatory ?





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