ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkuliche...@apache.org
Subject incubator-ignite git commit: # IGNITE-45 - Examples
Date Sun, 22 Mar 2015 18:44:08 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45 c7b864532 -> 082ad6b0a


# IGNITE-45 - Examples


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

Branch: refs/heads/ignite-45
Commit: 082ad6b0ad44f8134b83733e756b151acefdc81a
Parents: c7b8645
Author: Valentin Kulichenko <vkulichenko@gridgain.com>
Authored: Sun Mar 22 11:44:10 2015 -0700
Committer: Valentin Kulichenko <vkulichenko@gridgain.com>
Committed: Sun Mar 22 11:44:10 2015 -0700

----------------------------------------------------------------------
 .../java8/datastructures/IgniteExecutorServiceExample.java        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/082ad6b0/examples/src/main/java8/org/apache/ignite/examples/java8/datastructures/IgniteExecutorServiceExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java8/org/apache/ignite/examples/java8/datastructures/IgniteExecutorServiceExample.java
b/examples/src/main/java8/org/apache/ignite/examples/java8/datastructures/IgniteExecutorServiceExample.java
index bab9a2b..2526f60 100644
--- a/examples/src/main/java8/org/apache/ignite/examples/java8/datastructures/IgniteExecutorServiceExample.java
+++ b/examples/src/main/java8/org/apache/ignite/examples/java8/datastructures/IgniteExecutorServiceExample.java
@@ -19,6 +19,7 @@ package org.apache.ignite.examples.java8.datastructures;
 
 import org.apache.ignite.*;
 import org.apache.ignite.examples.*;
+import org.apache.ignite.lang.*;
 
 import java.util.concurrent.*;
 
@@ -50,7 +51,7 @@ public final class IgniteExecutorServiceExample {
             // Iterate through all words in the sentence and create callable jobs.
             for (final String word : "Print words using runnable".split(" ")) {
                 // Execute runnable on some node.
-                exec.submit(() -> {
+                exec.submit((IgniteRunnable)() -> {
                     System.out.println();
                     System.out.println(">>> Printing '" + word + "' on this node
from ignite job.");
                 });


Mime
View raw message