接口 RegistryProtocolListener

  • 所有已知实现类:
    MigrationRuleListener

    @SPI
    public interface RegistryProtocolListener
    RegistryProtocol listener is introduced to provide a chance to user to customize or change export and refer behavior of RegistryProtocol. For example: re-export or re-refer on the fly when certain condition meets.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void onDestroy()
      Notify RegistryProtocol's listeners when the protocol is destroyed
      void onExport​(RegistryProtocol registryProtocol, org.apache.dubbo.rpc.Exporter<?> exporter)
      Notify RegistryProtocol's listeners when a service is registered
      void onRefer​(RegistryProtocol registryProtocol, ClusterInvoker<?> invoker, URL url)
      Notify RegistryProtocol's listeners when a service is subscribed
    • 方法详细资料

      • onDestroy

        void onDestroy()
        Notify RegistryProtocol's listeners when the protocol is destroyed