| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Result
已过时。
|
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Result.AbstractResult
已过时。
|
static class |
Result.CompatibleResult
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
Result.AbstractResult.get() |
Result |
Result.AbstractResult.get(long timeout,
TimeUnit unit) |
Result |
Result.CompatibleResult.getDelegate() |
default Result |
Invoker.invoke(Invocation invocation)
已过时。
|
default Result |
Filter.invoke(Invoker<?> invoker,
Invocation invocation)
已过时。
|
Result |
Result.AbstractResult.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
| 限定符和类型 | 方法和说明 |
|---|---|
<U> CompletableFuture<U> |
Result.AbstractResult.thenApply(Function<Result,? extends U> fn) |
Result |
Result.AbstractResult.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
| 构造器和说明 |
|---|
CompatibleResult(Result result) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
CacheFilter.invoke(Invoker<?> invoker,
Invocation invocation)
If cache is configured, dubbo will invoke method on each method call.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
DelegateProviderMetaDataInvoker.invoke(Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
MetricsFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
MonitorFilter.invoke(Invoker<?> invoker,
Invocation invocation)
The invocation interceptor,it will collect the invoke data about this invocation and send it to monitor center
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
MonitorFilter.onResponse(Result result,
Invoker<?> invoker,
Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
ServiceDiscoveryMigrationInvoker.invoke(Invocation invocation) |
Result |
MigrationInvoker.invoke(Invocation invocation) |
| 限定符和类型 | 类和说明 |
|---|---|
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:
Public class AsyncRpcResult implements CompletionStage |
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
Result.get() |
Result |
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 |
AppResponse.get() |
Result |
Result.get(long timeout,
TimeUnit unit) |
Result |
AsyncRpcResult.get(long timeout,
TimeUnit unit) |
Result |
AppResponse.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.
|
Result |
Result.whenCompleteWithContext(BiConsumer<Result,Throwable> fn)
Add a callback which can be triggered when the RPC call finishes.
|
Result |
AsyncRpcResult.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
Result |
AppResponse.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Filter.Listener.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
<U> CompletableFuture<U> |
Result.thenApply(Function<Result,? extends U> fn) |
<U> CompletableFuture<U> |
AsyncRpcResult.thenApply(Function<Result,? extends U> fn) |
<U> CompletableFuture<U> |
AppResponse.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 |
AsyncRpcResult.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
Result |
AppResponse.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
| 限定符和类型 | 方法和说明 |
|---|---|
default Result |
ClusterInterceptor.intercept(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
Does not need to override this method, override
ClusterInterceptor.before(AbstractClusterInvoker, Invocation)
and ClusterInterceptor.after(AbstractClusterInvoker, Invocation), methods to add your own logic expected to be
executed before and after invoke. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ConsumerContextClusterInterceptor.onMessage(Result appResponse,
AbstractClusterInvoker<?> invoker,
Invocation invocation) |
void |
ClusterInterceptor.Listener.onMessage(Result appResponse,
AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
ForkingClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
Result |
FailsafeClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
Result |
FailoverClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
Result |
FailfastClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
Result |
BroadcastClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
Result |
BroadcastCluster2Invoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
Result |
AvailableClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
Result |
BroadcastResult.getResult() |
Result |
AbstractClusterInvoker.invoke(Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BroadcastResult.setResult(Result result) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
ZoneAwareClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
MockClusterInvoker.invoke(Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
TpsLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
TokenFilter.invoke(Invoker<?> invoker,
Invocation inv) |
Result |
TimeoutFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
GenericImplFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
GenericFilter.invoke(Invoker<?> invoker,
Invocation inv) |
Result |
ExecuteLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ExceptionFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
EchoFilter.invoke(Invoker<?> invoker,
Invocation inv) |
Result |
DeprecatedFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ContextFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ConsumerContextFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
CompatibleFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ClassLoaderFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ActiveLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
AccessLogFilter.invoke(Invoker<?> invoker,
Invocation inv)
This method logs the access log for service method invocation call.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TimeoutFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
GenericImplFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
GenericFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation inv) |
void |
ExecuteLimitFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ExceptionFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ContextFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
CompatibleFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ActiveLimitFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
ListenerInvokerWrapper.invoke(Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
InvokerWrapper.invoke(Invocation invocation) |
Result |
AsyncToSyncInvoker.invoke(Invocation invocation) |
Result |
AbstractInvoker.invoke(Invocation inv) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DecodeableRpcResult |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
TraceFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
FutureFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FutureFilter.onResponse(Result result,
Invoker<?> invoker,
Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
AbstractProxyInvoker.invoke(Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
MockInvoker.invoke(Invocation invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
ValidationFilter.invoke(Invoker<?> invoker,
Invocation invocation)
Perform the validation of before invoking the actual method based on validation attribute value.
|
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.