Skip to content

Commit

Permalink
Merge pull request #665 from mattrjacobs/add-idempotent-concurrency-doc
Browse files Browse the repository at this point in the history
Added comment to HystrixConcurrencyStrategy about non-idempotency of strategy application
  • Loading branch information
mattrjacobs committed Feb 10, 2015
2 parents 7cfb1f9 + ec5750e commit 391cfd0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
* For example, every {@link Callable} executed by {@link HystrixCommand} will call {@link #wrapCallable(Callable)} to give a chance for custom implementations to decorate the {@link Callable} with
* additional behavior.
* <p>
* When you implement a concrete {@link HystrixConcurrencyStrategy}, you should make the strategy idempotent w.r.t ThreadLocals.
* Since the usage of threads by Hystrix is internal, Hystrix does not attempt to apply the strategy in an idempotent way.
* Instead, you should write your strategy to work idempotently. See https://github.com/Netflix/Hystrix/issues/351 for a more detailed discussion.
* <p>
* See {@link HystrixPlugins} or the Hystrix GitHub Wiki for information on configuring plugins: <a
* href="https://github.com/Netflix/Hystrix/wiki/Plugins">https://github.com/Netflix/Hystrix/wiki/Plugins</a>.
*/
Expand Down

0 comments on commit 391cfd0

Please sign in to comment.