You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by mc...@apache.org on 2019/01/14 18:08:51 UTC
[geode-examples] branch develop updated: GEODE-6060: Properly
registering example cache listener
This is an automated email from the ASF dual-hosted git repository.
mcmellawatt pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-examples.git
The following commit(s) were added to refs/heads/develop by this push:
new 15f5264 GEODE-6060: Properly registering example cache listener
15f5264 is described below
commit 15f5264a11a9c89c53e5c0d6410e532b6168733e
Author: Ryan McMahon <rm...@pivotal.io>
AuthorDate: Mon Jan 14 10:08:46 2019 -0800
GEODE-6060: Properly registering example cache listener
---
listener/src/main/java/org/apache/geode_examples/listener/Example.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/listener/src/main/java/org/apache/geode_examples/listener/Example.java b/listener/src/main/java/org/apache/geode_examples/listener/Example.java
index 95f35e4..c10a161 100644
--- a/listener/src/main/java/org/apache/geode_examples/listener/Example.java
+++ b/listener/src/main/java/org/apache/geode_examples/listener/Example.java
@@ -44,6 +44,7 @@ public class Example {
// create a local region that matches the server region
ClientRegionFactory<Integer, String> clientRegionFactory =
cache.createClientRegionFactory(ClientRegionShortcut.PROXY);
+ clientRegionFactory.addCacheListener(new ExampleCacheListener());
Region<Integer, String> region = clientRegionFactory.create("example-region");
example.putEntries(region);