gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/client/GeodeClient.java
@SuppressWarnings("unchecked")
	public <K,V> Region<K,V> getRegion(String regionName)
	{
		if(regionName == null || regionName.length() == 0)
			return null;
		
		Region<K,V> region = (Region<K,V>)clientCache.getRegion(regionName);
		
		if(region != null )
			return (Region<K,V>)region;
		
		region = (Region<K,V>)this.createRegion(regionName);
		
		//Client side data policy is typically NORMAL or EMPTY
		if(cachingProxy)
		{
			//NORMAL data policy are typically used for CACHING_PROXY
			//You should interest so updates for the server will be pushed to the clients
			region.registerInterestRegex(".*");
		}
		
		return region;
	}
@SuppressWarnings("unchecked")
	public <K,V> Region<K,V> getRegion(String regionName)
	{
		if(regionName == null || regionName.length() == 0)
			return null;
		
		Region<K,V> region = (Region<K,V>)clientCache.getRegion(regionName);
		
		if(region != null )
			return (Region<K,V>)region;
		
		region = (Region<K,V>)this.createRegion(regionName);
		
		//Client side data policy is typically NORMAL or EMPTY
		if(cachingProxy)
		{
			//NORMAL data policy are typically used for CACHING_PROXY
			//You should interest so updates for the server will be pushed to the clients
			region.registerInterestRegex(".*");
		}
		
		return region;
	}
@ SuppressWarnings ( "unchecked" ) public < K , V > Region < K , V > getRegion ( String regionName ) { if ( regionName == null || regionName . length ( ) == 0 ) return null ; Region < K , V > region = ( Region < K , V > ) clientCache . getRegion ( regionName ) ; if ( region != null ) return ( Region < K , V > ) region ; region = ( Region < K , V > ) this . createRegion ( regionName ) ; //Client side data policy is typically NORMAL or EMPTY if ( cachingProxy ) { //NORMAL data policy are typically used for CACHING_PROXY //You should interest so updates for the server will be pushed to the clients region . registerInterestRegex ( ".*" ) ; } return region ; }
This is an example to get or create a region
@param regionName the  name
@param <K> the key type
@param <V> the value type
@return the existing or created region (using the ClientbRegionFactory)
This is an example to get or create a region