Interface Cluster

All Known Implementing Classes:
AbstractCluster, AvailableCluster, BroadcastCluster, FailbackCluster, FailfastCluster, FailoverCluster, FailsafeCluster, ForkingCluster, ScopeClusterWrapper, ZoneAwareCluster

@SPI("failover") public interface Cluster
Cluster. (SPI, Singleton, ThreadSafe)

Cluster Fault-Tolerant

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Cluster
    getCluster(org.apache.dubbo.rpc.model.ScopeModel scopeModel, String name)
     
    static Cluster
    getCluster(org.apache.dubbo.rpc.model.ScopeModel scopeModel, String name, boolean wrap)
     
    <T> Invoker<T>
    join(Directory<T> directory, boolean buildFilterChain)
    Merge the directory invokers to a virtual invoker.
  • Field Details

  • Method Details

    • join

      @Adaptive <T> Invoker<T> join(Directory<T> directory, boolean buildFilterChain) throws RpcException
      Merge the directory invokers to a virtual invoker.
      Type Parameters:
      T -
      Parameters:
      directory -
      Returns:
      cluster invoker
      Throws:
      RpcException
    • getCluster

      static Cluster getCluster(org.apache.dubbo.rpc.model.ScopeModel scopeModel, String name)
    • getCluster

      static Cluster getCluster(org.apache.dubbo.rpc.model.ScopeModel scopeModel, String name, boolean wrap)