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

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

Introduction

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

Prototype

public void setReadyForEvents(Boolean readyForEvents) 

Source Link

Document

Sets the readyForEvents property to indicate whether the cache client should notify the server that it is ready to receive updates.

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

    return gemfireCache;
}