List of usage examples for org.springframework.data.gemfire PartitionedRegionFactoryBean PartitionedRegionFactoryBean
PartitionedRegionFactoryBean
From source file:example.app.config.server.EchoServerApplicationConfiguration.java
@Bean(name = "Echo") PartitionedRegionFactoryBean<String, String> echoRegion(Cache gemfireCache) { PartitionedRegionFactoryBean<String, String> echoRegion = new PartitionedRegionFactoryBean<>(); echoRegion.setCache(gemfireCache);// w w w .j a va2 s . c om echoRegion.setCacheLoader(EchoCacheLoader.getInstance()); echoRegion.setClose(false); echoRegion.setPersistent(false); return echoRegion; }
From source file:org.spring.data.gemfire.app.main.SpringGemFireDataServer.java
@Bean
PartitionedRegionFactoryBean<Long, Person> peopleRegion(Cache gemfireCache,
RegionAttributes<Long, Person> peopleRegionAttributes) {
PartitionedRegionFactoryBean<Long, Person> peopleRegion = new PartitionedRegionFactoryBean<>();
peopleRegion.setAttributes(peopleRegionAttributes);
peopleRegion.setCache(gemfireCache);
peopleRegion.setClose(false);// w w w . j ava 2s . co m
peopleRegion.setName("People");
peopleRegion.setPersistent(false);
return peopleRegion;
}
From source file:example.app.config.server.ExampleApplicationConfiguration.java
@Bean(name = "Example") PartitionedRegionFactoryBean<String, Object> exampleRegion(Cache gemfireCache, RegionAttributes<String, Object> exampleRegionAttributes) { PartitionedRegionFactoryBean<String, Object> exampleRegion = new PartitionedRegionFactoryBean<>(); exampleRegion.setCache(gemfireCache); exampleRegion.setClose(false);/* w w w . java2s . c om*/ exampleRegion.setPersistent(false); return exampleRegion; }
From source file:org.example.app.bootstrap.config.ExampleApplicationGemFireConfiguration.java
@Bean @Autowired//from w ww .j av a2 s.co m public PartitionedRegionFactoryBean<Object, Object> examplePartitionRegion(Cache gemfireCache) { PartitionedRegionFactoryBean<Object, Object> partitionedRegionFactoryBean = new PartitionedRegionFactoryBean<>(); partitionedRegionFactoryBean.setCache(gemfireCache); partitionedRegionFactoryBean.setBeanName(REGION_NAME); partitionedRegionFactoryBean.setName(REGION_NAME); partitionedRegionFactoryBean.setPersistent(false); partitionedRegionFactoryBean.setRegionName(REGION_NAME); return partitionedRegionFactoryBean; }
From source file:example.app.config.gemfire.GemFireConfiguration.java
@Bean(name = "Contacts") //@DependsOn("Customers") public PartitionedRegionFactoryBean<Long, Contact> contactsRegion(GemFireCache gemfireCache, @Qualifier("contactsRegionAttributes") RegionAttributes<Long, Contact> contactsRegionAttributes) { PartitionedRegionFactoryBean<Long, Contact> contactsRegion = new PartitionedRegionFactoryBean<>(); contactsRegion.setAttributes(contactsRegionAttributes); contactsRegion.setCache(gemfireCache); contactsRegion.setClose(false);//w w w. j a va 2 s .c om contactsRegion.setPersistent(false); return contactsRegion; }
From source file:io.pivotal.example.java.SpringGemFireJavaBasedApplication.java
@Bean
PartitionedRegionFactoryBean<Long, String> springRegion(Cache gemfireCache) {
PartitionedRegionFactoryBean<Long, String> springRegion = new PartitionedRegionFactoryBean<>();
springRegion.setCache(gemfireCache);
springRegion.setName("SpringRegion");
springRegion.setPersistent(false);//from w w w. j av a2 s . c o m
return springRegion;
}
From source file:org.spring.data.gemfire.app.main.SpringGemFireServer.java
@Bean(name = "Example") PartitionedRegionFactoryBean<String, Object> exampleRegion(Cache gemfireCache) { PartitionedRegionFactoryBean<String, Object> exampleRegion = new PartitionedRegionFactoryBean<>(); exampleRegion.setCache(gemfireCache); exampleRegion.setClose(false);//from ww w . j ava2 s .com exampleRegion.setPersistent(false); return exampleRegion; }
From source file:org.stackoverflow.questions.xml_to_javaconfig.server.SpringBootGemFireServerApplication.java
@Bean(name = "Echo") PartitionedRegionFactoryBean<Object, Object> echoRegion(Cache gemfireCache) { PartitionedRegionFactoryBean<Object, Object> echoRegion = new PartitionedRegionFactoryBean<>(); echoRegion.setCache(gemfireCache);//from w ww. j ava 2 s . c o m echoRegion.setCacheLoader(echoCacheLoader()); echoRegion.setClose(false); echoRegion.setPersistent(false); return echoRegion; }
From source file:io.pivotal.gemfire.main.SpringGemFireServerApplication.java
@Bean
PartitionedRegionFactoryBean<Long, Long> factorialsRegion(Cache gemfireCache,
@Qualifier("factorialsRegionAttributes") RegionAttributes<Long, Long> factorialsRegionAttributes) {
PartitionedRegionFactoryBean<Long, Long> factorialsRegion = new PartitionedRegionFactoryBean<>();
factorialsRegion.setAttributes(factorialsRegionAttributes);
factorialsRegion.setCache(gemfireCache);
factorialsRegion.setClose(false);/* w ww .j a v a2s. c o m*/
factorialsRegion.setAttributes(factorialsRegionAttributes);
factorialsRegion.setName("Factorials");
factorialsRegion.setPersistent(false);
return factorialsRegion;
}
From source file:example.app.config.gemfire.GemFireConfiguration.java
@Bean(name = "Customers") public PartitionedRegionFactoryBean<Long, Customer> customersRegion(GemFireCache gemfireCache, @Qualifier("customersRegionAttributes") RegionAttributes<Long, Customer> customersRegionAttributes) { PartitionedRegionFactoryBean<Long, Customer> customersRegion = new PartitionedRegionFactoryBean<>(); customersRegion.setAttributes(customersRegionAttributes); customersRegion.setCache(gemfireCache); customersRegion.setClose(false);//from ww w . j a v a 2s .c o m customersRegion.setPersistent(false); return customersRegion; }