接口 Directory<T>

  • 所有超级接口:
    org.apache.dubbo.common.Node
    所有已知实现类:
    AbstractDirectory, StaticDirectory

    public interface Directory<T>
    extends org.apache.dubbo.common.Node
    Directory. (SPI, Prototype, ThreadSafe)

    Directory Service

    另请参阅:
    org.apache.dubbo.rpc.cluster.Cluster#join(Directory)
    • 方法详细资料

      • getInterface

        Class<T> getInterface()
        get service type.
        返回:
        service type.
      • getAllInvokers

        List<Invoker<T>> getAllInvokers()
        list invokers include all invokers from registry
      • getConsumerUrl

        org.apache.dubbo.common.URL getConsumerUrl()
      • isDestroyed

        boolean isDestroyed()
      • isEmpty

        default boolean isEmpty()
      • isServiceDiscovery

        default boolean isServiceDiscovery()
      • discordAddresses

        void discordAddresses()
      • addInvalidateInvoker

        void addInvalidateInvoker​(Invoker<T> invoker)
        invalidate an invoker, add it into reconnect task, remove from list next time will be recovered by address refresh notification or reconnect success notification
        参数:
        invoker - invoker to invalidate
      • addDisabledInvoker

        void addDisabledInvoker​(Invoker<T> invoker)
        disable an invoker, remove from list next time will be removed when invoker is removed by address refresh notification using in service offline notification
        参数:
        invoker - invoker to invalidate
      • recoverDisabledInvoker

        void recoverDisabledInvoker​(Invoker<T> invoker)
        recover a disabled invoker
        参数:
        invoker - invoker to invalidate
      • isNotificationReceived

        default boolean isNotificationReceived()