Giter Site home page Giter Site logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
OK, modifications are done.

I upload a jar on the download area (objectpool-1.1.3-snapshot.jar).

Best regards,
Eddie Raapoto

Original comment by [email protected] on 18 Apr 2013 at 9:16

  • Changed state: Started

from furious-objectpool.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Every time you can access concurrently to queue and totalSize i suppose you've 
to use synchronized (like returnObj and destroyObject methods).
If not in multi-thread active/idle count will be incorrect, etc.

Regards,
Daniele Bonetto

Original comment by [email protected] on 18 Apr 2013 at 9:36

from furious-objectpool.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
It strange, because the queue "java.util.concurrent.ConcurrentLinkedQueue" is 
already synchronized.
The totalSize variable "java.util.concurrent.atomic.AtomicInteger" is also 
thread safe.



Original comment by [email protected] on 18 Apr 2013 at 11:12

from furious-objectpool.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Hi, i've tried to shutdown pool while idling objects.
When retrieving idles instances counter was the same as before shutdown.

Shutdown don't close idle connections or idles property wasn't synchronized.
Check it please.

Regards,
Daniele

Original comment by [email protected] on 13 May 2013 at 10:43

from furious-objectpool.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Hi, do u have implemented PoolableObject.destroy(T t) method in your pool 
definition ?
Regards, Eddie

Original comment by [email protected] on 16 May 2013 at 8:47

from furious-objectpool.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Of course and it works.
I think the problem is with counters cause happens that with a max connection 
of 5 actives returns a greater number (eg. 7/8).
I suppose there's some problem when getObject fails, but not jet checked on 
sources.

I call getObject under try/finally (where i release obj if not null).

Regards,
Daniele

Original comment by [email protected] on 16 May 2013 at 10:44

from furious-objectpool.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.