/** * Creates the dynamic Region in the local cache and distributes the creation to other caches. * * @param parentRegionName the new region is created as a subregion of the region having this path * @param regionName the name of the new subregion * @return the {@code Region} created */ public Region createDynamicRegion(String parentRegionName, String regionName) throws CacheException { if (isClosed()) { throw new IllegalStateException("Dynamic region factory is closed"); } doBeforeRegionCreated(parentRegionName, regionName); Region region = createDynamicRegionImpl(parentRegionName, regionName, true); doAfterRegionCreated(region, false, false, null); return region; }
} else { DynamicRegionFactory drf = DynamicRegionFactory.get(); if (drf == null || drf.isClosed()) { return;
fullRegionName); if (isClosed()) { throw new IllegalStateException("Dynamic region factory is closed");
if (isClosed()) {