T
- public class HystrixRequestVariableHolder<T>
extends java.lang.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) |
Modifier and Type | Method and Description |
---|---|
T |
get(HystrixConcurrencyStrategy concurrencyStrategy) |
public HystrixRequestVariableHolder(HystrixRequestVariableLifecycle<T> lifeCycleMethods)
public T get(HystrixConcurrencyStrategy concurrencyStrategy)