Class AppResponse

java.lang.Object
org.apache.dubbo.rpc.AppResponse
All Implemented Interfaces:
Serializable, Result

public class AppResponse extends Object implements Result
AsyncRpcResult is introduced in 3.0.0 to replace RpcResult, and RpcResult is replaced with AppResponse:
  • AsyncRpcResult is the object that is actually passed in the call chain
  • AppResponse only simply represents the business result

The relationship between them can be described as follow, an abstraction of the definition of AsyncRpcResult:

  invalid input: '{@code
   Public class AsyncRpcResult implements CompletionStage<AppResponse> {
       ......
  }
 </pre>
 AsyncRpcResult is a future representing an unfinished RPC call, while AppResponse is the actual return type of this call.
 In theory, AppResponse doesn't have to implement the {@link Result} interface, this is done mainly for compatibility purpose.

 @serial Do not change the class name and properties.'
See Also: