Author: dereed
Date: 2011-08-09 18:47:23 -0400 (Tue, 09 Aug 2011)
New Revision: 8461
Modified:
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser2x.java
Log:
[JBCACHE=1603] Change default eviction wakeupIntervalSeconds to 5 instead of 5000 for
legacy configuration format
Modified:
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser2x.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser2x.java 2011-05-23
22:39:23 UTC (rev 8460)
+++
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser2x.java 2011-08-09
22:47:23 UTC (rev 8461)
@@ -389,13 +389,11 @@
wakeupIntervalSeconds = Integer.parseInt(temp);
}
- if (wakeupIntervalSeconds <= 0)
+ if (wakeupIntervalSeconds > 0)
{
- wakeupIntervalSeconds = EvictionConfig.WAKEUP_DEFAULT;
+ evictionConfig.setWakeupInterval(wakeupIntervalSeconds * 1000);
}
- evictionConfig.setWakeupInterval(wakeupIntervalSeconds * 1000);
-
int eventQueueSize = 0;
temp = XmlConfigHelper.getTagContents(element, "eventQueueSize", ATTR,
NAME);
Show replies by date