[jboss-user] [JBoss Cache: Core Edition] - Re: Compensation for network latency of sync'd DB
do-not-reply at jboss.com
Mon Aug 4 12:39:19 EDT 2008
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#4168517
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168517
More information about the jboss-user