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

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

Introduction

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

Prototype

public InterestResultPolicy getPolicy() 

Source Link

Document

Returns the InterestResultPolicy used when interest is registered and determines whether KEYS, KEYS_VALUES or nothing (NONE) is initially fetched on initial registration.

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());
            }// ww w  .  j a  v  a  2 s . co m
        }
    }
}