| Package | Description |
|---|---|
| com.alibaba.dubbo.rpc | |
| org.apache.dubbo.cache.filter | |
| org.apache.dubbo.config.invoker | |
| org.apache.dubbo.monitor.dubbo | |
| org.apache.dubbo.monitor.support | |
| org.apache.dubbo.rpc | |
| org.apache.dubbo.rpc.cluster.interceptor | |
| org.apache.dubbo.rpc.cluster.support | |
| org.apache.dubbo.rpc.cluster.support.registry | |
| org.apache.dubbo.rpc.cluster.support.wrapper | |
| org.apache.dubbo.rpc.filter | |
| org.apache.dubbo.rpc.listener | |
| org.apache.dubbo.rpc.protocol | |
| org.apache.dubbo.rpc.protocol.dubbo |
FutureAdapter was in dubbo-rpc-dubbo module,
considering some users will use this class directly, keep the package not changed. |
| org.apache.dubbo.rpc.protocol.dubbo.filter | |
| org.apache.dubbo.rpc.proxy | |
| org.apache.dubbo.rpc.support | |
| org.apache.dubbo.validation.filter |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Result
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Result.AbstractResult
Deprecated.
|
static class |
Result.CompatibleResult
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Result |
Result.AbstractResult.get() |
Result |
Result.AbstractResult.get(long timeout,
TimeUnit unit) |
Result |
Result.CompatibleResult.getDelegate() |
default Result |
Invoker.invoke(Invocation invocation)
Deprecated.
|
default Result |
Filter.invoke(Invoker<?> invoker,
Invocation invocation)
Deprecated.
|
Result |
Result.AbstractResult.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
| Modifier and Type | Method and Description |
|---|---|
<U> CompletableFuture<U> |
Result.AbstractResult.thenApply(Function<Result,? extends U> fn) |
Result |
Result.AbstractResult.whenCompleteWithContext(BiConsumer<Result,Throwable> fn) |
| Constructor and Description |
|---|
CompatibleResult(Result result) |
| Modifier and Type | Method and Description |
|---|---|
Result |
CacheFilter.invoke(Invoker<?> invoker,
Invocation invocation)
If cache is configured, dubbo will invoke method on each method call.
|
| Modifier and Type | Method and Description |
|---|---|
Result |
DelegateProviderMetaDataInvoker.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
MetricsFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
void |
MonitorFilter.onResponse(Result result,
Invoker<?> invoker,
Invocation invocation) |
| 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 |
AsyncRpcResult.get()
This method will always return after a maximum 'timeout' waiting:
1.
|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
Filter.Listener.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
<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) |
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
void |
ConsumerContextClusterInterceptor.onMessage(Result appResponse,
AbstractClusterInvoker<?> invoker,
Invocation invocation) |
void |
ClusterInterceptor.Listener.onMessage(Result appResponse,
AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
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 |
AvailableClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
Result |
AbstractClusterInvoker.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
ZoneAwareClusterInvoker.doInvoke(Invocation invocation,
List<Invoker<T>> invokers,
LoadBalance loadbalance) |
| Modifier and Type | Method and Description |
|---|---|
Result |
MockClusterInvoker.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
Result |
ListenerInvokerWrapper.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
InvokerWrapper.invoke(Invocation invocation) |
Result |
AsyncToSyncInvoker.invoke(Invocation invocation) |
Result |
AbstractInvoker.invoke(Invocation inv) |
| Modifier and Type | Class and Description |
|---|---|
class |
DecodeableRpcResult |
| Modifier and Type | Method and Description |
|---|---|
Result |
TraceFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
FutureFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
FutureFilter.onResponse(Result result,
Invoker<?> invoker,
Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
AbstractProxyInvoker.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
MockInvoker.invoke(Invocation invocation) |
| Modifier and Type | Method and Description |
|---|---|
Result |
ValidationFilter.invoke(Invoker<?> invoker,
Invocation invocation)
Perform the validation of before invoking the actual method based on validation attribute value.
|
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.