Hi,

I don't know if I fully understood how object pooling works. For example, if
I create a pool of ten qx.io.remote.Rpc objects that I want to use and reuse
when the request is completed. 

    this.__pool = new qx.util.ObjectPool(10);
    for ( var i=0; i<10; i++)
    {
      this.__pool.poolObject( new qx.io.remote.Rpc );
    }

Now I get an object from this pool:

      var rpc = this.__pool.getObject( qx.io.remote.Rpc );

but when the request returns and the object can be reused, how do I put it
back into the pool ? I don't see any method for that. poolObject() throws an
error "Object is already in the pool". 

Thanks,

Christian 
-- 
View this message in context: 
http://www.nabble.com/Object-pooling-with-qx.io.remote.Rpc-objects-tp23534774p23534774.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to