public interface Directory<T>
extends org.apache.dubbo.common.Node
org.apache.dubbo.rpc.cluster.Cluster#join(Directory)| 限定符和类型 | 方法和说明 |
|---|---|
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
|
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
|
void |
discordAddresses() |
List<Invoker<T>> |
getAllInvokers()
list invokers
include all invokers from registry
|
org.apache.dubbo.common.URL |
getConsumerUrl() |
Class<T> |
getInterface()
get service type.
|
RouterChain<T> |
getRouterChain() |
boolean |
isDestroyed() |
default boolean |
isEmpty() |
default boolean |
isNotificationReceived() |
default boolean |
isServiceDiscovery() |
List<Invoker<T>> |
list(Invocation invocation)
list invokers.
|
void |
recoverDisabledInvoker(Invoker<T> invoker)
recover a disabled invoker
|
List<Invoker<T>> list(Invocation invocation) throws RpcException
RpcExceptionorg.apache.dubbo.common.URL getConsumerUrl()
boolean isDestroyed()
default boolean isEmpty()
default boolean isServiceDiscovery()
void discordAddresses()
RouterChain<T> getRouterChain()
void addInvalidateInvoker(Invoker<T> invoker)
invoker - invoker to invalidatevoid addDisabledInvoker(Invoker<T> invoker)
invoker - invoker to invalidatevoid recoverDisabledInvoker(Invoker<T> invoker)
invoker - invoker to invalidatedefault boolean isNotificationReceived()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.