Class DefaultMigrationAddressComparator
java.lang.Object
org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparator
- All Implemented Interfaces:
MigrationAddressComparator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAddressSize(String displayServiceKey) <T> booleanshouldMigrate(ClusterInvoker<T> newInvoker, ClusterInvoker<T> oldInvoker, MigrationRule rule)
-
Field Details
-
OLD_ADDRESS_SIZE
- See Also:
-
NEW_ADDRESS_SIZE
- See Also:
-
-
Constructor Details
-
DefaultMigrationAddressComparator
public DefaultMigrationAddressComparator()
-
-
Method Details
-
shouldMigrate
public <T> boolean shouldMigrate(ClusterInvoker<T> newInvoker, ClusterInvoker<T> oldInvoker, MigrationRule rule) - Specified by:
shouldMigratein interfaceMigrationAddressComparator
-
getAddressSize
- Specified by:
getAddressSizein interfaceMigrationAddressComparator
-