Class AbstractExporter<T>

java.lang.Object
org.apache.dubbo.rpc.protocol.AbstractExporter<T>
All Implemented Interfaces:
Exporter<T>

public abstract class AbstractExporter<T> extends Object implements Exporter<T>
AbstractExporter.
  • Constructor Details

    • AbstractExporter

      public AbstractExporter(Invoker<T> invoker)
  • Method Details

    • getInvoker

      public Invoker<T> getInvoker()
      Description copied from interface: Exporter
      get invoker.
      Specified by:
      getInvoker in interface Exporter<T>
      Returns:
      invoker
    • unexport

      public final void unexport()
      Description copied from interface: Exporter
      unexport.

      getInvoker().destroy();

      Specified by:
      unexport in interface Exporter<T>
    • register

      public void register()
      Description copied from interface: Exporter
      register to registry
      Specified by:
      register in interface Exporter<T>
    • unregister

      public void unregister()
      Description copied from interface: Exporter
      unregister from registry
      Specified by:
      unregister in interface Exporter<T>
    • afterUnExport

      public void afterUnExport()
      subclasses need to override this method to destroy resources.
    • toString

      public String toString()
      Overrides:
      toString in class Object