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

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

Introduction

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

Prototype

public void setPdxIgnoreUnreadFields(Boolean pdxIgnoreUnreadFields) 

Source Link

Document

Controls whether pdx ignores fields that were unread during deserialization.

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  va2 s .com
    gemfireCache.setPdxIgnoreUnreadFields(true);
    gemfireCache.setPdxReadSerialized(true);
    gemfireCache.setProperties(gemfireProperties);

    return gemfireCache;
}