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 Details

    • InstanceWrappedInvoker

      public InstanceWrappedInvoker(org.apache.dubbo.rpc.Invoker<T> originInvoker, URL newConsumerUrl, ProtocolServiceKey protocolServiceKey)
  • Method Details

    • getInterface

      public Class<T> getInterface()
      Specified by:
      getInterface in interface org.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:
      invoke in interface org.apache.dubbo.rpc.Invoker<T>
      Throws:
      org.apache.dubbo.rpc.RpcException
    • getUrl

      public URL getUrl()
      Specified by:
      getUrl in interface Node
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in interface Node
    • destroy

      public void destroy()
      Specified by:
      destroy in interface Node