Example usage for org.springframework.data.gemfire.client ClientCacheFactoryBean setPoolName

List of usage examples for org.springframework.data.gemfire.client ClientCacheFactoryBean setPoolName

Introduction

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

Prototype

public void setPoolName(String poolName) 

Source Link

Document

Sets the name of the Pool used by this cache client to obtain connections to the Pivotal GemFire cluster.

Usage

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

@Bean
ClientCacheFactoryBean gemfireCache(@Qualifier("gemfireProperties") Properties gemfireProperties) {
    ClientCacheFactoryBean gemfireCache = new ClientCacheFactoryBean();

    gemfireCache.setClose(true);/*from   ww  w  .j  a  va 2s. c om*/
    gemfireCache.setKeepAlive(false);
    gemfireCache.setPoolName("gemfirePool");
    gemfireCache.setProperties(gemfireProperties);
    gemfireCache.setReadyForEvents(true);
    gemfireCache.setUseBeanFactoryLocator(false);

    return gemfireCache;
}