| Package | Description |
|---|---|
| org.apache.dubbo.rpc | |
| org.apache.dubbo.rpc.filter | |
| org.apache.dubbo.rpc.listener | |
| org.apache.dubbo.rpc.protocol | |
| org.apache.dubbo.rpc.proxy | |
| org.apache.dubbo.rpc.support |
| Modifier and Type | Class and Description |
|---|---|
class |
AppResponse
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: |
class |
AsyncRpcResult
This 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.
|
| Modifier and Type | Method and Description |
|---|---|
Result |
Result.get() |
Result |
AppResponse.get() |
Result |
AsyncRpcResult.get()
This method will always return after a maximum 'timeout' waiting:
1.
|
Result |
Result.get(long timeout,
TimeUnit unit) |
Result |
AppResponse.get(long timeout,
TimeUnit unit) |
Result |
AsyncRpcResult.get(long timeout,
TimeUnit unit) |
Result |
AsyncRpcResult.getAppResponse() |
Result |
Invoker.invoke(Invocation invocation)
invoke.
|
Result |
Filter.invoke(Invoker<?> invoker,
Invocation invocation)
Make sure call invoker.invoke() in your implementation.
|
default Result |
Filter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation)
Deprecated.
|
Result |
Result.whenCompleteWithContext(BiConsumer<Result,Throwable> fn)
Add a callback which can be triggered when the RPC call finishes.
|
Result |
AppResponse.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
Result |
AsyncRpcResult.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
| Modifier and Type | Method and Description |
|---|---|
void |
Filter.Listener.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
default Result |
Filter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<U> CompletableFuture<U> |
Result.thenApply(Function<Result,? extends U> fn) |
<U> CompletableFuture<U> |
AppResponse.thenApply(Function<Result,? extends U> fn) |
<U> CompletableFuture<U> |
AsyncRpcResult.thenApply(Function<Result,? extends U> fn) |
Result |
Result.whenCompleteWithContext(BiConsumer<Result,Throwable> fn)
Add a callback which can be triggered when the RPC call finishes.
|
Result |
AppResponse.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
Result |
AsyncRpcResult.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
| Modifier and Type | Method and Description |
|---|---|
Result |
AccessLogFilter.invoke(Invoker<?> invoker,
Invocation inv)
This method logs the access log for service method invocation call.
|
Result |
CompatibleFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ClassLoaderFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ExecuteLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
TpsLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ActiveLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ExceptionFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
GenericImplFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
EchoFilter.invoke(Invoker<?> invoker,
Invocation inv) |
Result |
TokenFilter.invoke(Invoker<?> invoker,
Invocation inv) |
Result |
ContextFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
DeprecatedFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
TimeoutFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ConsumerContextFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
GenericFilter.invoke(Invoker<?> invoker,
Invocation inv) |
| Modifier and Type | Method and Description |
|---|---|
void |
CompatibleFilter.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ExecuteLimitFilter.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ActiveLimitFilter.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ExceptionFilter.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
GenericImplFilter.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ContextFilter.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
TimeoutFilter.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
GenericFilter.onMessage(Result appResponse,
Invoker<?> invoker,
Invocation inv) |
| Modifier and Type | Method and Description |
|---|---|
Result |
ListenerInvokerWrapper.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
AbstractInvoker.invoke(Invocation inv) |
Result |
AsyncToSyncInvoker.invoke(Invocation invocation) |
Result |
InvokerWrapper.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
AbstractProxyInvoker.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
MockInvoker.invoke(Invocation invocation) |
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.