T - public class HystrixRequestVariableHolder<T> extends Object
HystrixRequestVariable for internal Hystrix code.
This is used as a layer between the actual HystrixRequestVariable and calling code to allow injected implementations of HystrixConcurrencyStrategy.
Typically a HystrixRequestVariable would be statically referenced (similar to a ThreadLocal) but to allow dynamic injection we instead statically reference this class which can then
dynamically fetch the correct implementation and statically retain an instance across threads within a context (such as HystrixRequestContext.
| Constructor and Description |
|---|
HystrixRequestVariableHolder(HystrixRequestVariableLifecycle<T> lifeCycleMethods) |
public HystrixRequestVariableHolder(HystrixRequestVariableLifecycle<T> lifeCycleMethods)
public T get(HystrixConcurrencyStrategy concurrencyStrategy)
Copyright © 2015. All Rights Reserved.