Example usage for org.springframework.data.gemfire.client ClientRegionFactoryBean setAttributes

List of usage examples for org.springframework.data.gemfire.client ClientRegionFactoryBean setAttributes

Introduction

In this page you can find the example usage for org.springframework.data.gemfire.client ClientRegionFactoryBean setAttributes.

Prototype

public void setAttributes(RegionAttributes<K, V> attributes) 

Source Link

Document

Sets the region attributes used for the region used by this factory.

Usage

From source file:org.spring.data.gemfire.app.main.SpringGemFireDataClient.java

@Bean(name = "People")
ClientRegionFactoryBean<Long, Person> peopleRegion(GemFireCache clientCache, Pool gemfirePool,
        RegionAttributes<Long, Person> peopleRegionAttributes) {
    ClientRegionFactoryBean<Long, Person> peopleRegion = new ClientRegionFactoryBean<>();

    peopleRegion.setAttributes(peopleRegionAttributes);
    peopleRegion.setCache(clientCache);/*from   ww w.j  av  a 2 s . c  o  m*/
    peopleRegion.setClose(false);
    peopleRegion.setPool(gemfirePool);
    peopleRegion.setPersistent(false);
    peopleRegion.setShortcut(ClientRegionShortcut.PROXY);

    return peopleRegion;
}