Author: manik.surtani(a)jboss.com
Date: 2008-08-18 15:46:56 -0400 (Mon, 18 Aug 2008)
New Revision: 6575
Modified:
core/trunk/src/main/java/org/jboss/cache/RegionImpl.java
Log:
Dont throw an exception
Modified: core/trunk/src/main/java/org/jboss/cache/RegionImpl.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/RegionImpl.java 2008-08-18 13:34:16 UTC (rev
6574)
+++ core/trunk/src/main/java/org/jboss/cache/RegionImpl.java 2008-08-18 19:46:56 UTC (rev
6575)
@@ -244,7 +244,7 @@
capacityWarnThreshold = (98 * size) / 100 - 100;
if (capacityWarnThreshold <= 0)
{
- throw new RuntimeException("Capacity warn threshold used in eviction is
smaller than 1.");
+ if (log.isWarnEnabled()) log.warn("Capacity warn threshold used in
eviction is smaller than 1.");
}
evictionEventQueue = new LinkedBlockingQueue<EvictionEvent>(size);
}
Show replies by date