类的使用
org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker
-
使用AbstractClusterInvoker的程序包 程序包 说明 org.apache.dubbo.rpc.cluster.interceptor org.apache.dubbo.rpc.cluster.support org.apache.dubbo.rpc.cluster.support.registry -
-
org.apache.dubbo.rpc.cluster.interceptor中AbstractClusterInvoker的使用
参数类型为AbstractClusterInvoker的org.apache.dubbo.rpc.cluster.interceptor中的方法 修饰符和类型 方法 说明 voidClusterInterceptor. after(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)voidConsumerContextClusterInterceptor. after(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)voidZoneAwareClusterInterceptor. after(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)voidClusterInterceptor. before(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)voidConsumerContextClusterInterceptor. before(AbstractClusterInvoker<?> invoker, Invocation invocation)voidZoneAwareClusterInterceptor. before(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)default ResultClusterInterceptor. intercept(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)Does not need to override this method, overrideClusterInterceptor.before(AbstractClusterInvoker, Invocation)andClusterInterceptor.after(AbstractClusterInvoker, Invocation), methods to add your own logic expected to be executed before and after invoke.voidClusterInterceptor.Listener. onError(Throwable t, AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)voidConsumerContextClusterInterceptor. onError(Throwable t, AbstractClusterInvoker<?> invoker, Invocation invocation)voidClusterInterceptor.Listener. onMessage(Result appResponse, AbstractClusterInvoker<?> clusterInvoker, Invocation invocation)voidConsumerContextClusterInterceptor. onMessage(Result appResponse, AbstractClusterInvoker<?> invoker, Invocation invocation) -
org.apache.dubbo.rpc.cluster.support中AbstractClusterInvoker的使用
org.apache.dubbo.rpc.cluster.support中AbstractClusterInvoker的子类 修饰符和类型 类 说明 classAvailableClusterInvoker<T>AvailableClusterclassBroadcastCluster2Invoker<T>BroadcastCluster2InvokerclassBroadcastClusterInvoker<T>BroadcastClusterInvokerclassFailbackClusterInvoker<T>When fails, record failure requests and schedule for retry on a regular interval.classFailfastClusterInvoker<T>Execute exactly once, which means this policy will throw an exception immediately in case of an invocation error.classFailoverClusterInvoker<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.classFailsafeClusterInvoker<T>When invoke fails, log the error message and ignore this error by returning an empty Result.classForkingClusterInvoker<T>NOTICE!classMergeableClusterInvoker<T>返回AbstractClusterInvoker的org.apache.dubbo.rpc.cluster.support中的方法 修饰符和类型 方法 说明 <T> AbstractClusterInvoker<T>BroadcastCluster. doJoin(Directory<T> directory)<T> AbstractClusterInvoker<T>BroadcastCluster2. doJoin(Directory<T> directory)<T> AbstractClusterInvoker<T>FailbackCluster. doJoin(Directory<T> directory)<T> AbstractClusterInvoker<T>FailfastCluster. doJoin(Directory<T> directory)<T> AbstractClusterInvoker<T>FailoverCluster. doJoin(Directory<T> directory)<T> AbstractClusterInvoker<T>FailsafeCluster. doJoin(Directory<T> directory)<T> AbstractClusterInvoker<T>ForkingCluster. doJoin(Directory<T> directory)<T> AbstractClusterInvoker<T>MergeableCluster. doJoin(Directory<T> directory) -
org.apache.dubbo.rpc.cluster.support.registry中AbstractClusterInvoker的使用
org.apache.dubbo.rpc.cluster.support.registry中AbstractClusterInvoker的子类 修饰符和类型 类 说明 classZoneAwareClusterInvoker<T>When there're more than one registry for subscription.
-