Uses of Interface
org.apache.dubbo.rpc.Result
Packages that use Result
Package
Description
-
Uses of Result in org.apache.dubbo.rpc
Classes in org.apache.dubbo.rpc that implement ResultModifier and TypeClassDescriptionclassAsyncRpcResultis introduced in 3.0.0 to replace RpcResult, and RpcResult is replaced withAppResponse: AsyncRpcResult is the object that is actually passed in the call chain AppResponse only simply represents the business resultclassThis class represents an unfinished RPC call, it will hold some context information for this call, for example RpcContext and Invocation, so that when the call finishes and the result returns, it can guarantee all the contexts being recovered as the same as when the call was made before any callback is invoked.Methods in org.apache.dubbo.rpc that return ResultModifier and TypeMethodDescriptionAppResponse.get()AsyncRpcResult.get()This method will always return after a maximum 'timeout' waiting: 1. if value returns before timeout, return normally. 2. if no value returns after timeout, throw TimeoutException.Result.get()AsyncRpcResult.getAppResponse()BaseFilter.invoke(Invoker<?> invoker, Invocation invocation) Always call invoker.invoke() in the implementation to hand over the request to the next filter node.Invoker.invoke(Invocation invocation) invoke.AppResponse.whenCompleteWithContext(BiConsumer<Result, Throwable> fn) AsyncRpcResult.whenCompleteWithContext(BiConsumer<Result, Throwable> fn) Result.whenCompleteWithContext(BiConsumer<Result, Throwable> fn) Add a callback which can be triggered when the RPC call finishes.Methods in org.apache.dubbo.rpc with parameters of type ResultModifier and TypeMethodDescriptionvoidBaseFilter.Listener.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) This method will only be called on successful remote rpc execution, that means, the service in on remote received the request and the result (normal or exceptional) returned successfully.Method parameters in org.apache.dubbo.rpc with type arguments of type ResultModifier and TypeMethodDescription<U> CompletableFuture<U> <U> CompletableFuture<U> <U> CompletableFuture<U> AppResponse.whenCompleteWithContext(BiConsumer<Result, Throwable> fn) AsyncRpcResult.whenCompleteWithContext(BiConsumer<Result, Throwable> fn) Result.whenCompleteWithContext(BiConsumer<Result, Throwable> fn) Add a callback which can be triggered when the RPC call finishes. -
Uses of Result in org.apache.dubbo.rpc.filter
Methods in org.apache.dubbo.rpc.filter that return ResultModifier and TypeMethodDescriptionAccessLogFilter.invoke(Invoker<?> invoker, Invocation inv) This method logs the access log for service method invocation call.ActiveLimitFilter.invoke(Invoker<?> invoker, Invocation invocation) AdaptiveLoadBalanceFilter.invoke(Invoker<?> invoker, Invocation invocation) ClassLoaderCallbackFilter.invoke(Invoker<?> invoker, Invocation invocation) ClassLoaderFilter.invoke(Invoker<?> invoker, Invocation invocation) CompatibleFilter.invoke(Invoker<?> invoker, Invocation invocation) Deprecated.ContextFilter.invoke(Invoker<?> invoker, Invocation invocation) DeprecatedFilter.invoke(Invoker<?> invoker, Invocation invocation) EchoFilter.invoke(Invoker<?> invoker, Invocation inv) ExceptionFilter.invoke(Invoker<?> invoker, Invocation invocation) ExecuteLimitFilter.invoke(Invoker<?> invoker, Invocation invocation) GenericFilter.invoke(Invoker<?> invoker, Invocation inv) GenericImplFilter.invoke(Invoker<?> invoker, Invocation invocation) ProfilerServerFilter.invoke(Invoker<?> invoker, Invocation invocation) RpcExceptionFilter.invoke(Invoker<?> invoker, Invocation invocation) TimeoutFilter.invoke(Invoker<?> invoker, Invocation invocation) TokenFilter.invoke(Invoker<?> invoker, Invocation inv) TpsLimitFilter.invoke(Invoker<?> invoker, Invocation invocation) Methods in org.apache.dubbo.rpc.filter with parameters of type ResultModifier and TypeMethodDescriptionvoidActiveLimitFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidAdaptiveLoadBalanceFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidClassLoaderCallbackFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidClassLoaderFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidCompatibleFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) Deprecated.voidContextFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidExceptionFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidExecuteLimitFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidGenericFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation inv) voidGenericImplFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidProfilerServerFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidRpcExceptionFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) voidTimeoutFilter.onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) -
Uses of Result in org.apache.dubbo.rpc.listener
Methods in org.apache.dubbo.rpc.listener that return Result -
Uses of Result in org.apache.dubbo.rpc.protocol
Methods in org.apache.dubbo.rpc.protocol that return ResultModifier and TypeMethodDescriptionAbstractInvoker.invoke(Invocation inv) InvokerWrapper.invoke(Invocation invocation) ReferenceCountInvokerWrapper.invoke(Invocation invocation) -
Uses of Result in org.apache.dubbo.rpc.protocol.dubbo.filter
Methods in org.apache.dubbo.rpc.protocol.dubbo.filter that return ResultMethods in org.apache.dubbo.rpc.protocol.dubbo.filter with parameters of type ResultModifier and TypeMethodDescriptionvoidFutureFilter.onResponse(Result result, Invoker<?> invoker, Invocation invocation) -
Uses of Result in org.apache.dubbo.rpc.proxy
Methods in org.apache.dubbo.rpc.proxy that return Result -
Uses of Result in org.apache.dubbo.rpc.support
Methods in org.apache.dubbo.rpc.support that return Result