The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Sergio Bossa <sergio.bo...@gmail.com>
Date: Thu, 12 Nov 2009 15:14:32 +0100
Local: Thurs, Nov 12 2009 9:14 am
Subject: Re: Threading Policies
On Thu, Nov 12, 2009 at 3:08 PM, Stefan Weber <stefan.we...@gmail.com> wrote:
So, you'd like to implement some kind of custom routing logic: that
> Example: I get an ASCII string from the network and wrap it in a Message. > Then I call getMessageType on it and Message will parse the ASCII string and > return the message type. Only then I know what specific message it is. is, rather than routing on the message type, you may want to route on some kind of message property, is that correct? If so, the correct way to solve this would be IMO to enhance the
@OnMessage(type = Message.class, predicate = FooPredicate.class)
public class FooPredicate implements Predicate<Message> {
public boolean accept(Message msg) { ... }
}
What do you think?
-- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||