[jboss-user] [JBoss Cache: Core Edition] - Re: Buddy migration and removal

lovelyliatroim do-not-reply at jboss.com
Wed Nov 5 13:11:53 EST 2008


Not so clear what you want but this may or may not help you.

Have a look at the expirationPolicy. 
http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/2.2.1.GA/userguide_en/html_single/index.html#d0e3603

Tag the node you want for how long you want it to live, if the node gets migrated to another node in the meantime it will also get evicted roughly simultaneously as the original node. (When i say roughly I mean when the eviction thread gets around to evicting it, it obviously wont be parallell but roughly the same time).

if you dont want or need that approach may i suggest you include a timestamp in the data that gets migrated(So in your own object that you are caching) and adjusting your own timer logic to check this time stamp to see if its valid for eviction.

May or may not help .......

Cheers,
LL


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

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



More information about the jboss-user mailing list