Class RegionFactory<K,V>

java.lang.Object
org.apache.geode.cache.RegionFactory<K,V>

public class RegionFactory<K,V> extends Object
RegionFactory is used to create regions in a cache. Instances of this interface can be created: Once the factory has been created it can be customized with its setter methods.

The final step is to produce a Region by calling create(String).

Example: Create a replicate region with a CacheListener

 Cache c = new CacheFactory().create();
 // Create replicate region.
 // Add a cache listener before creating region
 Region r = c.createRegionFactory(REPLICATE).addCacheListener(myListener).create("replicate");
 

Example: Create a partition region that has redundancy

 Cache c = new CacheFactory().create();
 // Create replicate region.
 // Add a cache listener before creating region
 Region r = c.createRegionFactory(PARTITION_REDUNDANT).create("partition");
 
Since:
GemFire 5.0