Example usage for org.springframework.data.gemfire.client Interest isDurable

List of usage examples for org.springframework.data.gemfire.client Interest isDurable

Introduction

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

Prototype

public boolean isDurable() 

Source Link

Document

Determines whether the interest registration is durable and persists between cache client sessions.

Usage

From source file:org.springframework.data.gemfire.client.ClientRegionFactoryBean.java

protected void postProcess(Region<K, V> region) {
    if (!ObjectUtils.isEmpty(interests)) {
        for (Interest<K> interest : interests) {
            if (interest instanceof RegexInterest) {
                // do the cast since it's safe
                region.registerInterestRegex((String) interest.getKey(), interest.getPolicy(),
                        interest.isDurable(), interest.isReceiveValues());
            } else {
                region.registerInterest(interest.getKey(), interest.getPolicy(), interest.isDurable(),
                        interest.isReceiveValues());
            }//from  w w w . j  a va 2  s . c o  m
        }
    }
}