Example usage for org.springframework.data.gemfire LocalRegionFactoryBean LocalRegionFactoryBean

List of usage examples for org.springframework.data.gemfire LocalRegionFactoryBean LocalRegionFactoryBean

Introduction

In this page you can find the example usage for org.springframework.data.gemfire LocalRegionFactoryBean LocalRegionFactoryBean.

Prototype

LocalRegionFactoryBean

Source Link

Usage

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;
}