接口 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 destroyedvoid
onExport(RegistryProtocol registryProtocol, Exporter<?> exporter)
Notify RegistryProtocol's listeners when a service is registeredvoid
onRefer(RegistryProtocol registryProtocol, ClusterInvoker<?> invoker, URL url, URL registryURL)
Notify RegistryProtocol's listeners when a service is subscribed
-
-
-
方法详细资料
-
onExport
void onExport(RegistryProtocol registryProtocol, Exporter<?> exporter)
Notify RegistryProtocol's listeners when a service is registered- 参数:
registryProtocol
- RegistryProtocol instanceexporter
- exporter- 另请参阅:
RegistryProtocol.export(org.apache.dubbo.rpc.Invoker)
-
onRefer
void onRefer(RegistryProtocol registryProtocol, ClusterInvoker<?> invoker, URL url, URL registryURL)
Notify RegistryProtocol's listeners when a service is subscribed- 参数:
registryProtocol
- RegistryProtocol instanceinvoker
- invokerurl
-- 另请参阅:
RegistryProtocol.refer(Class, URL)
-
onDestroy
void onDestroy()
Notify RegistryProtocol's listeners when the protocol is destroyed
-
-