directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject Re: [Mina] Best to have prioritary messages
Date Mon, 10 Oct 2005 23:36:02 GMT
Hi Jean-Fran├žois,

2005/10/11, Jean-Fran├žois Daune <>:
> 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?

Yes, implementing a filter is the best solution as others noticed. Possibly
you'll have to implement your own ThreadPoolFilter or modify existing one.

BTW thanks for your good idea of QoS. :)

what we call human nature is actually human habit

View raw message