Class MigrationRuleListener

java.lang.Object
org.apache.dubbo.registry.client.migration.MigrationRuleListener
All Implemented Interfaces:
EventListener, ConfigurationListener, RegistryProtocolListener

@Activate public class MigrationRuleListener extends Object implements RegistryProtocolListener, ConfigurationListener
Listens to from Config Center.

- Migration rule is of consumer application scope. - Listener is shared among all invokers (interfaces), it keeps the relation between interface and handler.

There are two execution points: - Refer, invoker behaviour is determined with default rule. - Rule change, invoker behaviour is changed according to the newly received rule.