Skip to content

Commit 0eb94fe

Browse files
ralf0131chickenlj
authored andcommitted
add comment
1 parent efb9c89 commit 0eb94fe

File tree

1 file changed

+8
-1
lines changed
  • dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc

1 file changed

+8
-1
lines changed

dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/Result.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@
2525

2626

2727
/**
28-
* RPC invoke result. (API, Prototype, NonThreadSafe)
28+
* (API, Prototype, NonThreadSafe)
29+
*
30+
* An RPC {@link Result}.
31+
*
32+
* Known implementations are:
33+
* 1. {@link AsyncRpcResult}, it's a {@link CompletionStage} whose underlying value signifies the return value of an RPC call.
34+
* 2. {@link AppResponse}, it inevitably inherits {@link CompletionStage} and {@link Future}, but you should never treat AppResponse as a type of Future,
35+
* instead, it is a normal concrete type.
2936
*
3037
* @serial Don't change the class name and package name.
3138
* @see org.apache.dubbo.rpc.Invoker#invoke(Invocation)

0 commit comments

Comments
 (0)