Example usage for org.springframework.data.gemfire DiskStoreFactoryBean setTimeInterval

List of usage examples for org.springframework.data.gemfire DiskStoreFactoryBean setTimeInterval

Introduction

In this page you can find the example usage for org.springframework.data.gemfire DiskStoreFactoryBean setTimeInterval.

Prototype

public void setTimeInterval(Long timeInterval) 

Source Link

Usage

From source file:org.spring.data.gemfire.app.context.config.PeerCacheConfiguration.java

@Bean(name = "CustomersDataStore")
public DiskStoreFactoryBean exampleDiskStore(Cache gemfireCache) {
    DiskStoreFactoryBean customersDiskStore = new DiskStoreFactoryBean();
    customersDiskStore.setCache(gemfireCache);
    customersDiskStore.setBeanName("CustomerDataStore");
    customersDiskStore.setAutoCompact(true);
    customersDiskStore.setDiskDirs(Arrays.asList(new DiskDir("./gemfire/disk-stores/customers")));
    customersDiskStore.setCompactionThreshold(75);
    customersDiskStore.setMaxOplogSize(10);
    customersDiskStore.setQueueSize(100);
    customersDiskStore.setTimeInterval(300000);
    return customersDiskStore;
}