[CURATOR-380] Service Discovery: ServiceCacheListener should receive the added or deleted service instance when notified
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
I think it's reasonable to receive the added/deleted service instance when ServiceCacheListener is notified, currently ServiceCacheListener only has one no-arg method:
public void cacheChanged();
Maybe we should add(or replace with) another two methods in ServiceCacheListener, like:
void onInstanceAdded(ServiceInstance instance);
void onInstancedRemoved(ServiceInstance instance);
---
Originally reported by julyguo, imported from: Service Discovery: ServiceCacheListener should receive the added or deleted service instance when notified
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.