T - Type to be stored on the HystrixRequestVariablepublic interface HystrixRequestVariable<T> extends HystrixRequestVariableLifecycle<T>
ThreadLocal but scoped at the user request level.
Default implementation is HystrixRequestVariableDefault managed by HystrixRequestContext.
Custom implementations can be injected using HystrixPlugins and HystrixConcurrencyStrategy.getRequestVariable(com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableLifecycle<T>).
See JavaDoc of HystrixRequestContext for more information about functionality this enables and how to use the default implementation.
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Retrieve current value or initialize and then return value for this variable for the current request scope.
|
initialValue, shutdownT get()