posted 22 years ago
Hi all,
I need to implement a Request queue with the following problem description:
1. I have a connection pool that will notify when a free connection is available. Concurrent requests wait in a queue for this notification if the pool doesnot have sufficient connections.
2. Requests have a timeout. While waiting for the connection, some of the requests may timeout if they donot receive a free connection in the given time.
Could anyone point me to tips on how I can implement this? If I am able to make the request threads "sleep" for a given time, my problem is 80% solved.
Thanks in advance,
Praveen.