Noel J. Bergman wrote:
OK, I believe that I have a "simple" solution, which I will try and
hopefully commit tomorrow.

Rather than keep you in suspense, I'm going to push the filter further into
the code where we can effect the cache directly.

        --- Noel


This sound similar to my first approach:

I changed getNextPendingMessage to getNextAvailableMessage(Filter) and moved the accept inside the method so that I have the accept in the same code where we manage the pendingMessages cache. Then I thought at it and I only found a solution that need a change to the accept method to return the next timestamp instead of boolean. This is easy because we already calculate the next time in all of our acceptfilters, but need an interface change.

Unfortunately yesterday I had no time/soul for code.

I'm looking forward for your solution!

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to