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

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

Introduction

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

Prototype

ClientCacheFactoryBean

Source Link

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);/*w  w  w. jav  a2 s . c om*/
    gemfireCache.setKeepAlive(false);
    gemfireCache.setPoolName("gemfirePool");
    gemfireCache.setProperties(gemfireProperties);
    gemfireCache.setReadyForEvents(true);
    gemfireCache.setUseBeanFactoryLocator(false);

    return gemfireCache;
}

From source file:sample.ClientConfig.java

@Bean
ClientCacheFactoryBean gemfireCache() { // <4>
    ClientCacheFactoryBean clientCacheFactory = new ClientCacheFactoryBean();

    clientCacheFactory.setClose(true);//from w w w  .  ja va  2  s  . co  m
    clientCacheFactory.setProperties(gemfireProperties());

    return clientCacheFactory;
}

From source file:sample.client.Application.java

@Bean
ClientCacheFactoryBean gemfireCache() { // <3>
    ClientCacheFactoryBean gemfireCache = new ClientCacheFactoryBean();

    gemfireCache.setClose(true);/*from  w  ww. j a  v  a  2s .c  o  m*/
    gemfireCache.setProperties(gemfireProperties());

    return gemfireCache;
}