Package org.apache.dubbo.registry.client
Class ServiceDiscoveryRegistryDirectory.InstanceWrappedInvoker<T>
java.lang.Object
org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.InstanceWrappedInvoker<T>
- All Implemented Interfaces:
Node,org.apache.dubbo.rpc.Invoker<T>
- Enclosing class:
ServiceDiscoveryRegistryDirectory<T>
public static final class ServiceDiscoveryRegistryDirectory.InstanceWrappedInvoker<T>
extends Object
implements org.apache.dubbo.rpc.Invoker<T>
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceWrappedInvoker(org.apache.dubbo.rpc.Invoker<T> originInvoker, URL newConsumerUrl, ProtocolServiceKey protocolServiceKey) -
Method Summary
-
Constructor Details
-
InstanceWrappedInvoker
public InstanceWrappedInvoker(org.apache.dubbo.rpc.Invoker<T> originInvoker, URL newConsumerUrl, ProtocolServiceKey protocolServiceKey)
-
-
Method Details
-
getInterface
- Specified by:
getInterfacein interfaceorg.apache.dubbo.rpc.Invoker<T>
-
invoke
public org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invocation invocation) throws org.apache.dubbo.rpc.RpcException - Specified by:
invokein interfaceorg.apache.dubbo.rpc.Invoker<T>- Throws:
org.apache.dubbo.rpc.RpcException
-
getUrl
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceNode
-
destroy
public void destroy()
-