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

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

Introduction

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

Prototype

public void setKeepAlive(Boolean keepAlive) 

Source Link

Document

Sets whether the server(s) should keep the durable client's queue alive for the duration of the timeout when the client voluntarily disconnects.

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   w  ww  . j  a  v  a  2 s  .c o m
    gemfireCache.setKeepAlive(false);
    gemfireCache.setPoolName("gemfirePool");
    gemfireCache.setProperties(gemfireProperties);
    gemfireCache.setReadyForEvents(true);
    gemfireCache.setUseBeanFactoryLocator(false);

    return gemfireCache;
}