@ 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