public Set < Region < ? , ? > > createRegions ( Map < String , String > regionNames ) { Set < Region < ? , ? > > regions = new HashSet < Region < ? , ? > > ( ) ; proxyRegionFactory = cache . createClientRegionFactory ( ClientRegionShortcut . PROXY ) ; for ( String regionPath : regionNames . keySet ( ) ) { Region region = createRegion ( regionPath , regionNames . get ( regionPath ) ) ; regions . add ( region ) ; } return regions ; }
Creates regions structure similar to server region structure .