Skip to content

Commit

Permalink
Merge pull request #1108 from jhinch/javanica-plugins-concurrency-str…
Browse files Browse the repository at this point in the history
…ategy

Javanica HystrixRequestCacheManager should use the concurrency strategy from HystrixPlugins
  • Loading branch information
mattrjacobs committed Feb 29, 2016
2 parents ce6c0b2 + 6f162a7 commit c7f9cfb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.netflix.hystrix.HystrixCommandKey;
import com.netflix.hystrix.HystrixRequestCache;
import com.netflix.hystrix.contrib.javanica.cache.annotation.CacheRemove;
import com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategyDefault;
import com.netflix.hystrix.strategy.HystrixPlugins;


/**
Expand Down Expand Up @@ -50,6 +50,6 @@ public void clearCache(CacheInvocationContext<CacheRemove> context) {
defaultCacheKeyGenerator.generateCacheKey(context);
String key = hystrixGeneratedCacheKey.getCacheKey();
HystrixRequestCache.getInstance(HystrixCommandKey.Factory.asKey(cacheName),
HystrixConcurrencyStrategyDefault.getInstance()).clear(key);
HystrixPlugins.getInstance().getConcurrencyStrategy()).clear(key);
}
}

0 comments on commit c7f9cfb

Please sign in to comment.