类 AppResponse

  • 所有已实现的接口:
    Serializable, Result
    直接已知子类:
    DecodeableRpcResult

    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:

      {@code
       Public class AsyncRpcResult implements CompletionStage {
           ......
      }
     
    AsyncRpcResult is a future representing an unfinished RPC call, while AppResponse is the actual return type of this call. In theory, AppResponse does'n have to implement the {@link Result} interface, this is done mainly for compatibility purpose.
    另请参阅:
    序列化表格