commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nader Mirzadeh <n.mirza...@bellid.com>
Subject Idle Time
Date Thu, 15 Jan 2009 12:25:05 GMT
Commons-Pool v1.4: GenericObjectPool/GenericKeyedObjectPoo
   The time-stamp is set in GenericKeyedObjectPool.ObjectTimestampPair.tstamp at the creation
time of a pooled object, and it is never updated. The idle time is calculated in the evict()
method, and that time is always larger than the actual idle time of the object sitting in
the pool. Hence, objects are removed from the pool while they are eligible for reuse (according
to the configuration).  I believe the time-stamp has to be updated whenever an object is returned
to the pool.

-nader

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