List of usage examples for org.springframework.data.gemfire LocalRegionFactoryBean LocalRegionFactoryBean
LocalRegionFactoryBean
From source file:org.spring.data.gemfire.config.GemFireConfiguration.java
@Bean(name = "ExampleLocal") public LocalRegionFactoryBean<Long, String> exampleLocalRegion(Cache gemfireCache) throws Exception { LocalRegionFactoryBean<Long, String> exampleLocalRegion = new LocalRegionFactoryBean<>(); exampleLocalRegion.setCache(gemfireCache); exampleLocalRegion.setName("ExampleLocal"); return exampleLocalRegion; }
From source file:org.spring.data.gemfire.config.GemFireConfiguration.java
@Bean(name = "ExampleEvictionLocal") public LocalRegionFactoryBean<Object, Object> exampleEvictionLocalRegion(Cache gemfireCache, @Qualifier("defaultRegionAttributes") RegionAttributes<Object, Object> regionAttributes) throws Exception { LocalRegionFactoryBean<Object, Object> anotherExampleLocalRegion = new LocalRegionFactoryBean<>(); anotherExampleLocalRegion.setAttributes(regionAttributes); anotherExampleLocalRegion.setCache(gemfireCache); anotherExampleLocalRegion.setName("ExampleEvictionLocal"); return anotherExampleLocalRegion; }