| Package | Description |
|---|---|
| org.apache.dubbo.rpc.cluster.interceptor | |
| org.apache.dubbo.rpc.cluster.support | |
| org.apache.dubbo.rpc.cluster.support.registry |
| Modifier and Type | Method and Description |
|---|---|
void |
ClusterInterceptor.after(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
void |
ConsumerContextClusterInterceptor.after(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
void |
ZoneAwareClusterInterceptor.after(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
void |
ClusterInterceptor.before(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
void |
ConsumerContextClusterInterceptor.before(AbstractClusterInvoker<?> invoker,
Invocation invocation) |
void |
ZoneAwareClusterInterceptor.before(AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
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 |
ClusterInterceptor.Listener.onError(Throwable t,
AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
void |
ConsumerContextClusterInterceptor.onError(Throwable t,
AbstractClusterInvoker<?> invoker,
Invocation invocation) |
void |
ClusterInterceptor.Listener.onMessage(Result appResponse,
AbstractClusterInvoker<?> clusterInvoker,
Invocation invocation) |
void |
ConsumerContextClusterInterceptor.onMessage(Result appResponse,
AbstractClusterInvoker<?> invoker,
Invocation invocation) |
| Modifier and Type | Class and Description |
|---|---|
class |
AvailableClusterInvoker<T>
AvailableCluster
|
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! This implementation does not work well with async call.
|
class |
MergeableClusterInvoker<T> |
| Modifier and Type | Method and Description |
|---|---|
<T> AbstractClusterInvoker<T> |
FailsafeCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
FailoverCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
FailbackCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
BroadcastCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
FailfastCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
ForkingCluster.doJoin(Directory<T> directory) |
<T> AbstractClusterInvoker<T> |
MergeableCluster.doJoin(Directory<T> directory) |
| Modifier and Type | Class and Description |
|---|---|
class |
ZoneAwareClusterInvoker<T>
When there're more than one registry for subscription.
|
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.