com.alibaba.dubbo.rpc.cluster.support
Class FailfastCluster

java.lang.Object
  extended by com.alibaba.dubbo.rpc.cluster.support.FailfastCluster
All Implemented Interfaces:
Cluster

public class FailfastCluster
extends Object
implements Cluster

快速失败,只发起一次调用,失败立即报错,通常用于非幂等性的写操作。

Fail-fast

Author:
william.liangf

Field Summary
static String NAME
           
 
Constructor Summary
FailfastCluster()
           
 
Method Summary
<T> Invoker<T>
join(Directory<T> directory)
          Merge the directory invokers to a virtual invoker.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

FailfastCluster

public FailfastCluster()
Method Detail

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.