How does your implementation know which messages to delay? Or do you simply delay all
messages? You'd want to be careful here since the only way I can think of to tell
which messages to delay on a JGroups level is to deserialize everything and then look at
the method ids. And delaying everything is not good since join/leave messages could be
delayed as well.
Your best bet may be to write an Interceptor and add this to the start of the chain. You
could create a Queue to hold all InvalidateCommands (2.2.0 and above) or MethodCalls
containing the invalidate methodId (pre-2.2.0), add them to a DelayQueue and don't
pass the call up the interceptor stack any further.
You could then have another Thread that polls the delay queue grab stuff off the queue as
they mature, and then pass them up the interceptor stack.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168517#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...