july created CURATOR-380:
----------------------------

             Summary: Service Discovery: ServiceCacheListener should receive 
the added or deleted service instance when notified 
                 Key: CURATOR-380
                 URL: https://issues.apache.org/jira/browse/CURATOR-380
             Project: Apache Curator
          Issue Type: Improvement
          Components: Recipes
    Affects Versions: 2.11.1
            Reporter: july


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<T> instance);
void onInstancedRemoved(ServiceInstance<T> instance);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to