commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodrigo Canabrava" <canab...@gmail.com>
Subject Re: [pool] returnObject question
Date Thu, 12 Apr 2007 14:09:17 GMT
Then probably you don't need a pool.
A pool is useful exactly when you want to re-use the object, for performance
issues.
In your case, seems like you need a factory, not a pool.

Rodrigo


2007/4/11, Tom Muldoon <tom@firstbest.com>:
>
> In returnObject(), can I discard the current object and construct a new
> one? The reason that I ask has to do with the fact that resetting the
> current object to its initial state is significantly longer than simply
> constructing a new object.
>
> Thanks, Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

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