[jboss-user] [JBossCache] - Re: AsyncCacheLoader

genman do-not-reply at jboss.com
Tue Mar 20 13:10:10 EDT 2007


Take a look at the Javadoc:

http://labs.jboss.com/file-access/default/members/jbosscache/freezone/docs/1.4.1.SP2/api/org/jboss/cache/loader/AsyncCacheLoader.html

If you want a flush every minute, and no more, then set batchSize to a very high value, then pollWait to one minute (in milliseconds.)

My recommendation would be to flush every 1-5 seconds at most, and set the batch size to a reasonable value (such as 100). This is so that one DB operation is not too long.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029893#4029893

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029893



More information about the jboss-user mailing list