Example usage for org.springframework.data.gemfire CacheFactoryBean setPdxReadSerialized

List of usage examples for org.springframework.data.gemfire CacheFactoryBean setPdxReadSerialized

Introduction

In this page you can find the example usage for org.springframework.data.gemfire CacheFactoryBean setPdxReadSerialized.

Prototype

public void setPdxReadSerialized(Boolean pdxReadSerialized) 

Source Link

Document

Sets the object preference to PdxInstance.

Usage

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

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

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

    return gemfireCache;
}