com.alibaba.dubbo.rpc.cluster.support
Class ForkingCluster
java.lang.Object
com.alibaba.dubbo.rpc.cluster.support.ForkingCluster
- All Implemented Interfaces:
- Cluster
public class ForkingCluster
- extends Object
- implements Cluster
并行调用,只要一个成功即返回,通常用于实时性要求较高的操作,但需要浪费更多服务资源。
Fork
- Author:
- william.liangf
Method Summary |
|
join(Directory<T> directory)
Merge the directory invokers to a virtual invoker. |
NAME
public static final String NAME
- See Also:
- Constant Field Values
ForkingCluster
public ForkingCluster()
join
public <T> Invoker<T> join(Directory<T> directory)
throws RpcException
- Description copied from interface:
Cluster
- Merge the directory invokers to a virtual invoker.
- Specified by:
join
in interface Cluster
- Returns:
- cluster invoker
- Throws:
RpcException
Copyright © 2012–2017 Alibaba. All rights reserved.