[rules-users] Question about collect and sliding windows
Anais Martinez
amartinez at iti.upv.es
Wed Dec 1 11:19:43 EST 2010
> What does your thread do after it returns from fireAllRules?
My thread sleeps five minutes and then it fires again: (intervalLength =
5*60*1000):
@Override
public void run(){
while(!end){
try {
Thread.sleep(intervalLength);
int nRules = ksession.fireRules();
if(nRules > 0){
logger.debug(nRules + " reglas disparadas.");
}
}
catch (InterruptedException e) {
logger.error(e);
}
}
}
>Well, if the events arrive on schedule it should be OK, but what about the
delayed arrivals?
Ah, ok...
Thank you, again.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-collect-and-sliding-windows-tp1999562p2000077.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list