Invoke super.onCacheRefreshed() before custom logic (#2604)

This commit is contained in:
Bertrand Renuart
2018-01-03 02:10:06 +01:00
committed by Ryan Baxter
parent 29adaf26e9
commit fb0d53a796

View File

@@ -93,6 +93,8 @@ public class CloudEurekaClient extends DiscoveryClient {
@Override
protected void onCacheRefreshed() {
super.onCacheRefreshed();
if (this.cacheRefreshedCount != null) { //might be called during construction and will be null
long newCount = this.cacheRefreshedCount.incrementAndGet();
log.trace("onCacheRefreshed called with count: " + newCount);