Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
New Feature Request. #27
We are currently using the Memcached client and providing the pool parameters through our custom configuration system. We are using the client object as a spring singleton wired into our main codebase.
In order to do so there should be a method in SchoonerSockIOPool class which will remove the pool object from "pools" HashMap. This method will take in poolname as argument and will remove that object from the HashMap.
If we can do this then we can remove the pool object if any config value is changed and then reinitialize the pool at runtime with new values. With addition of this feature we don't have to recycle our servers everytime a config value is changed.
I was wondering how difficult it would be for you to add this feature?
Thank you for your time.
Yes but shutdown will not remove the previous object from the hashmap
On Saturday, August 6, 2011, mengli
Actually shutdown will remove all the connection pool which is maintained by SchoonerSockIOPool and all the sockets will be closed safely, so no memory leak will occur.
You can re-create specified connection pool after shutting it down. Don't forget to initialize the new connection pool, :)
Ah ok, let me give it a try.
On Sunday, August 7, 2011, mengli