Class AbstractInvoker<T>

java.lang.Object
org.apache.dubbo.rpc.protocol.AbstractInvoker<T>
All Implemented Interfaces:
Node, Invoker<T>

public abstract class AbstractInvoker<T> extends Object implements Invoker<T>
This Invoker works on Consumer side.
  • Constructor Details

    • AbstractInvoker

      public AbstractInvoker(Class<T> type, URL url)
    • AbstractInvoker

      public AbstractInvoker(Class<T> type, URL url, String[] keys)
    • AbstractInvoker

      public AbstractInvoker(Class<T> type, URL url, Map<String,Object> attachment)
  • Method Details

    • getInterface

      public Class<T> getInterface()
      Description copied from interface: Invoker
      get service interface.
      Specified by:
      getInterface in interface Invoker<T>
      Returns:
      service interface.
    • 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
    • isDestroyed

      public boolean isDestroyed()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • invoke

      public Result invoke(Invocation inv) throws RpcException
      Description copied from interface: Invoker
      invoke.
      Specified by:
      invoke in interface Invoker<T>
      Parameters:
      inv -
      Returns:
      result
      Throws:
      RpcException