ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsetrak...@apache.org
Subject incubator-ignite git commit: # ignite-45 - example update.
Date Sun, 22 Mar 2015 09:35:43 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45 a515b4705 -> 249537cd2


# ignite-45 - example update.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/249537cd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/249537cd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/249537cd

Branch: refs/heads/ignite-45
Commit: 249537cd2c0c7dadcd70a946c67ae668e68890ff
Parents: a515b47
Author: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Authored: Sun Mar 22 02:35:40 2015 -0700
Committer: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Committed: Sun Mar 22 02:35:40 2015 -0700

----------------------------------------------------------------------
 .../ignite/examples/java8/datagrid/CacheApiExample.java     | 9 +--------
 .../org/apache/ignite/examples/java8/package-info.java      | 3 ++-
 2 files changed, 3 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/249537cd/examples/src/main/java8/org/apache/ignite/examples/java8/datagrid/CacheApiExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java8/org/apache/ignite/examples/java8/datagrid/CacheApiExample.java
b/examples/src/main/java8/org/apache/ignite/examples/java8/datagrid/CacheApiExample.java
index 597a841..efe045f 100644
--- a/examples/src/main/java8/org/apache/ignite/examples/java8/datagrid/CacheApiExample.java
+++ b/examples/src/main/java8/org/apache/ignite/examples/java8/datagrid/CacheApiExample.java
@@ -89,14 +89,7 @@ public class CacheApiExample {
         IgniteFuture<String> fut = asyncCache.future();
 
         //Asynchronously wait for result.
-        fut.listen(fut1 -> {
-            try {
-                System.out.println("Put operation completed [previous-value=" + fut1.get()
+ ']');
-            }
-            catch (IgniteException e) {
-                e.printStackTrace();
-            }
-        });
+        fut.listen(f -> System.out.println("Put operation completed [previous-value="
+ f.get() + ']'));
 
         // Put-if-absent.
         boolean b1 = cache.putIfAbsent(4, "4");

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/249537cd/examples/src/main/java8/org/apache/ignite/examples/java8/package-info.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java8/org/apache/ignite/examples/java8/package-info.java b/examples/src/main/java8/org/apache/ignite/examples/java8/package-info.java
index 05fd206..d936877 100644
--- a/examples/src/main/java8/org/apache/ignite/examples/java8/package-info.java
+++ b/examples/src/main/java8/org/apache/ignite/examples/java8/package-info.java
@@ -17,6 +17,7 @@
 
 /**
  * <!-- Package description. -->
- * Basic examples for ignite functionality.
+ * Basic examples for ignite functionality utilizing Java8 lambdas.
+ * Use "java8" examples with JDK8 in addition to the "java" examples.
  */
 package org.apache.ignite.examples.java8;


Mime
View raw message