[jboss-user] [JBoss Cache: Core Edition] - Re: LRUPolicy eviction policy

lovelyliatroim do-not-reply at jboss.com
Mon Oct 27 10:11:47 EDT 2008


Also documentation for this 

anonymous wrote : 
  | # timeToLiveSeconds  - The amount of time a node is not written to or read (in seconds) before the node is swept away. 0 denotes no limit. 
  | 

If you leave it out, you get an exception like so

  | 
  | org.jboss.cache.config.ConfigurationException: timeToLiveSeconds must be configured to a value greater than or equal to 0
  | 	at org.jboss.cache.eviction.LRUConfiguration.validate(LRUConfiguration.java:85)
  | 	at org.jboss.cache.factories.XmlConfigurationParser.parseEvictionPolicyConfig(XmlConfigurationParser.java:616)
  | 
  | 

Docs should possibly state that this is mandatory or let the default value for this be 0 when nothing configured for it. 

Just passing on some thoughts on it.

Cheers,
LL


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

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



More information about the jboss-user mailing list