[jboss-dev-forums] [Design of JBossCache] - Requirement for _default_ eviction region
bstansberry@jboss.com
do-not-reply at jboss.com
Wed Mar 12 13:19:12 EDT 2008
Follow-on to our discussion on http://jira.jboss.org/jira/browse/JBCACHE-1288
Looking at RegionManager for other reasons and noticed this bit in getRegion(Fqn, Region.Type, boolean):
| // test if the default region has been defined. If not, and if eviction regions
| // are in use, throw an exception since it is required.
| if ((nextBestThing == null || nextBestThing.getFqn().isRoot() && !regionsRegistry.containsKey(Fqn.ROOT))
| && type == EVICTION)
| {
| if (log.isTraceEnabled())
| log.trace("Next best region is " + nextBestThing + ". RegionsRegistry contains a default? " + regionsRegistry.containsKey(Fqn.ROOT) + " Region type requested = " + type);
| throw new RuntimeException("No default eviction region defined!");
| }
|
Looks like we *are* enforcing a requirement for a _default_ region.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136049#4136049
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136049
More information about the jboss-dev-forums
mailing list