dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu...@apache.org
Subject [incubator-dubbo-samples] branch master updated: remove features only support in dubbo 3.x
Date Mon, 01 Apr 2019 06:58:06 GMT
This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new af97e7d  remove features only support in dubbo 3.x
af97e7d is described below

commit af97e7da9bbd5d4c95bd6b1dfce83a3b5d6069e6
Author: ken.lj <ken.lj.hz@gmail.com>
AuthorDate: Mon Apr 1 14:57:52 2019 +0800

    remove features only support in dubbo 3.x
---
 .../dubbo-samples-async-original-future/pom.xml    |  4 ++--
 .../governance/filter/AsyncPostprocessFilter.java  |  3 ++-
 .../dubbo-samples-async-simple/pom.xml             |  4 ++--
 .../samples/generic/call/GenericCallConsumer.java  | 22 ----------------------
 .../dubbo-samples-generic-call/pom.xml             |  4 ++--
 5 files changed, 8 insertions(+), 29 deletions(-)

diff --git a/dubbo-samples-async/dubbo-samples-async-original-future/pom.xml b/dubbo-samples-async/dubbo-samples-async-original-future/pom.xml
index 6defc02..76e319e 100644
--- a/dubbo-samples-async/dubbo-samples-async-original-future/pom.xml
+++ b/dubbo-samples-async/dubbo-samples-async-original-future/pom.xml
@@ -32,8 +32,8 @@
         <source.level>1.8</source.level>
         <target.level>1.8</target.level>
         <spring.version>4.3.16.RELEASE</spring.version>
-        <dubbo.version>2.7.1-SNAPSHOT</dubbo.version>
-        <dubbo.rpc.version>2.7.1-SNAPSHOT</dubbo.rpc.version>
+        <dubbo.version>2.7.1</dubbo.version>
+        <dubbo.rpc.version>2.7.1</dubbo.rpc.version>
         <zookeeper.version>3.4.13</zookeeper.version>
         <curator.version>4.0.1</curator.version>
         <validation-api.version>1.1.0.Final</validation-api.version>
diff --git a/dubbo-samples-async/dubbo-samples-async-original-future/src/main/java/org/apache/dubbo/samples/governance/filter/AsyncPostprocessFilter.java
b/dubbo-samples-async/dubbo-samples-async-original-future/src/main/java/org/apache/dubbo/samples/governance/filter/AsyncPostprocessFilter.java
index 8dc8522..d89a39c 100644
--- a/dubbo-samples-async/dubbo-samples-async-original-future/src/main/java/org/apache/dubbo/samples/governance/filter/AsyncPostprocessFilter.java
+++ b/dubbo-samples-async/dubbo-samples-async-original-future/src/main/java/org/apache/dubbo/samples/governance/filter/AsyncPostprocessFilter.java
@@ -35,8 +35,9 @@ public class AsyncPostprocessFilter implements Filter {
     }
 
     @Override
-    public void onResponse(Result result, Invoker<?> invoker, Invocation invocation)
{
+    public Result onResponse(Result result, Invoker<?> invoker, Invocation invocation)
{
         System.out.println("AsyncPostprocessFilter: Filter get the return value: " + result.getValue());
+        return result;
     }
 
 }
diff --git a/dubbo-samples-async/dubbo-samples-async-simple/pom.xml b/dubbo-samples-async/dubbo-samples-async-simple/pom.xml
index b260c7e..d86556c 100644
--- a/dubbo-samples-async/dubbo-samples-async-simple/pom.xml
+++ b/dubbo-samples-async/dubbo-samples-async-simple/pom.xml
@@ -32,8 +32,8 @@
         <source.level>1.8</source.level>
         <target.level>1.8</target.level>
         <spring.version>4.3.16.RELEASE</spring.version>
-        <dubbo.version>2.7.1-SNAPSHOT</dubbo.version>
-        <dubbo.rpc.version>2.7.1-SNAPSHOT</dubbo.rpc.version>
+        <dubbo.version>2.7.1</dubbo.version>
+        <dubbo.rpc.version>2.7.1</dubbo.rpc.version>
         <zookeeper.version>3.4.13</zookeeper.version>
         <curator.version>4.0.1</curator.version>
         <validation-api.version>1.1.0.Final</validation-api.version>
diff --git a/dubbo-samples-generic/dubbo-samples-generic-call/dubbo-samples-generic-call-consumer/src/main/java/org/apache/dubbo/samples/generic/call/GenericCallConsumer.java
b/dubbo-samples-generic/dubbo-samples-generic-call/dubbo-samples-generic-call-consumer/src/main/java/org/apache/dubbo/samples/generic/call/GenericCallConsumer.java
index b7ba90d..c2be8c9 100644
--- a/dubbo-samples-generic/dubbo-samples-generic-call/dubbo-samples-generic-call-consumer/src/main/java/org/apache/dubbo/samples/generic/call/GenericCallConsumer.java
+++ b/dubbo-samples-generic/dubbo-samples-generic-call/dubbo-samples-generic-call-consumer/src/main/java/org/apache/dubbo/samples/generic/call/GenericCallConsumer.java
@@ -47,8 +47,6 @@ public class GenericCallConsumer {
         genericService = referenceConfig.get();
         $invokeWithNormalSignature();
         $invokeWithAsyncSignature();
-        $invokeAsyncWithAsyncSignature();
-        $invokeAsyncWithNormalSignature();
         System.in.read();
     }
 
@@ -74,24 +72,4 @@ public class GenericCallConsumer {
         System.out.println("...." + result);
     }
 
-    public static void $invokeAsyncWithAsyncSignature() throws Exception {
-        CompletableFuture<Object> future  = genericService.$invokeAsync("sayHelloAsync",
new String[]{"java.lang.String"}, new Object[]{"world"});
-
-        future.whenComplete((value, t) -> {
-            System.err.println(value);
-        });
-
-        System.out.println(".... before return ...");
-    }
-
-    public static void $invokeAsyncWithNormalSignature() throws Exception {
-        CompletableFuture<Object> future  = genericService.$invokeAsync("sayHello",
new String[]{"java.lang.String"}, new Object[]{"world"});
-
-        future.whenComplete((value, t) -> {
-            System.err.println(value);
-        });
-
-        System.out.println(".... before return ...");
-    }
-
 }
diff --git a/dubbo-samples-generic/dubbo-samples-generic-call/pom.xml b/dubbo-samples-generic/dubbo-samples-generic-call/pom.xml
index 9da1bc6..17f9745 100644
--- a/dubbo-samples-generic/dubbo-samples-generic-call/pom.xml
+++ b/dubbo-samples-generic/dubbo-samples-generic-call/pom.xml
@@ -41,8 +41,8 @@
         <source.level>1.8</source.level>
         <target.level>1.8</target.level>
         <spring.version>4.3.16.RELEASE</spring.version>
-        <dubbo.version>2.7.1-SNAPSHOT</dubbo.version>
-        <dubbo.rpc.version>2.7.1-SNAPSHOT</dubbo.rpc.version>
+        <dubbo.version>2.7.1</dubbo.version>
+        <dubbo.rpc.version>2.7.1</dubbo.rpc.version>
         <zookeeper.version>3.4.13</zookeeper.version>
         <curator.version>4.0.1</curator.version>
         <validation-api.version>1.1.0.Final</validation-api.version>


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Mime
View raw message