
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - Type to be stored on the HystrixRequestVariablepublic interface HystrixRequestVariable<T>
Interface for a variable similar to 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.
See JavaDoc of HystrixRequestContext for more information about functionality this enables and how to use the default implementation.
| Method Summary | |
|---|---|
T |
get()
Retrieve current value or initialize and then return value for this variable for the current request scope. |
| Methods inherited from interface com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableLifecycle |
|---|
initialValue, shutdown |
| Method Detail |
|---|
T get()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||