/** * Constructs a ClientRegionFactory by creating a DistributedSystem and a Cache. If no * DistributedSystem exists it creates a loner DistributedSystem, otherwise it uses the existing * DistributedSystem. A default pool will be used unless ... The region configuration is * initialized using a region attributes whose name was given as the refid. * * @param refid the name of the region attributes to use */ public ClientRegionFactoryImpl(InternalClientCache cache, String refid) { this.cache = cache; RegionAttributes ra = cache.getRegionAttributes(refid); if (ra == null) { throw new IllegalStateException( "The named region attributes \"" + refid + "\" has not been defined."); } this.attrsFactory = new AttributesFactory<K, V>(ra); initAttributeFactoryDefaults(); }
/** * Constructs a ClientRegionFactory by creating a DistributedSystem and a Cache. If no * DistributedSystem exists it creates a loner DistributedSystem, otherwise it uses the existing * DistributedSystem. A default pool will be used unless ... The Region configuration is * initialized using the given region shortcut. * * @param pra the region shortcut to use */ public ClientRegionFactoryImpl(InternalClientCache cache, ClientRegionShortcut pra) { this.cache = cache; RegionAttributes ra = cache.getRegionAttributes(pra.toString()); if (ra == null) { throw new IllegalStateException( "The region shortcut " + pra + " has been removed from " + cache.listRegionAttributes()); } this.attrsFactory = new AttributesFactory<K, V>(ra); initAttributeFactoryDefaults(); }