Jean-François Daune wrote:

Hi,

I face a tough problem. My server application needs to prioritize some messages. I mean that when a message of type X is received, it should be processed before any other ones. Actually, the best would be that a message X whose 'age' is higher than S seconds should be promoted as first one to process.
In a way, it is QoS at message-handling level.
What is the best way in Mina to implement this?
Maybe using a filter?


Well, that looks fairly like a stateful filter so I would think it is rather appropriate. (actually a filter is useful for anything :)
but how do you plan to handle your priority buffer ?

Reply via email to