commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [pool] should addObject return a boolean?
Date Wed, 21 Sep 2011 03:24:08 GMT
That sounds reasonable.

Would any call sites prefer an exception. Checked or unchecked?

Gary

On Tue, Sep 20, 2011 at 10:53 PM, Phil Steitz <phil.steitz@gmail.com> wrote:

> When GKOP or GOP pools lack capacity, addObject does nothing.  In
> some cases (I am dealing with one now internally to GKOP), it would
> be good to know if an instance was actually added or not.  How about
> changing the interface (both OP and KOP versions) to return a
> boolean with true indicating that a new instance was actually
> created and added to the pool?
>
> Phil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

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