| 程序包 | 说明 |
|---|---|
| org.apache.dubbo.rpc.cluster.interceptor | |
| org.apache.dubbo.rpc.cluster.support | |
| org.apache.dubbo.rpc.cluster.support.registry |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ClusterInterceptor.after(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
已过时。
|
void |
ClusterInterceptor.before(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
已过时。
|
default Result |
ClusterInterceptor.intercept(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation)
已过时。
Override this method or
ClusterInterceptor.before(AbstractClusterInvoker, Invocation)
and ClusterInterceptor.after(AbstractClusterInvoker, Invocation) methods to add your own logic expected to be
executed before and after invoke. |
void |
ClusterInterceptor.Listener.onError(Throwable t,
AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
void |
ClusterInterceptor.Listener.onMessage(Result appResponse,
AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AvailableClusterInvoker<T>
AvailableClusterInvoker
|
class |
BroadcastClusterInvoker<T>
BroadcastClusterInvoker
|
class |
FailbackClusterInvoker<T>
When fails, record failure requests and schedule for retry on a regular interval.
|
class |
FailfastClusterInvoker<T>
Execute exactly once, which means this policy will throw an exception immediately in case of an invocation error.
|
class |
FailoverClusterInvoker<T>
When invoke fails, log the initial error and retry other invokers (retry n times, which means at most n different invokers will be invoked)
Note that retry causes latency.
|
class |
FailsafeClusterInvoker<T>
When invoke fails, log the error message and ignore this error by returning an empty Result.
|
class |
ForkingClusterInvoker<T>
NOTICE!
|
class |
MergeableClusterInvoker<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> AbstractClusterInvoker<T> |
ForkingCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
MergeableCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
AvailableCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
FailbackCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
BroadcastCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
FailoverCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
FailfastCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
FailsafeCluster.doJoin(Directory<T> directory) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ZoneAwareClusterInvoker<T>
When there are more than one registry for subscription.
|
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.