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

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

Introduction

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

Prototype

public Interest(K key) 

Source Link

Document

Constructs an instance of non-durable Interest initialized with the given key to register interest in, using the InterestResultPolicy#DEFAULT to initialize the client cache and receiving values by default.

Usage

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

/**
 * Factory method to construct a new instance of {@link Interest} initialized with the given key.
 *
 * @param <K> {@link Class} type of the key.
 * @param key key of interest.//from ww  w .  ja  v a 2s. c  o m
 * @return a new instance of {@link Interest} initialized with the given key.
 * @see #Interest(Object)
 */
public static <K> Interest newInterest(K key) {
    return new Interest<>(key);
}