
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - public interface HystrixRequestVariableLifecycle<T>
Interface for lifecycle methods that are then executed by an implementation of HystrixRequestVariable.
| Method Summary | |
|---|---|
T |
initialValue()
Invoked when HystrixRequestVariable.get() is first called. |
void |
shutdown(T value)
Invoked when request scope is shutdown to allow for cleanup. |
| Method Detail |
|---|
T initialValue()
HystrixRequestVariable.get() is first called.
When using the default implementation this is invoked when HystrixRequestVariableDefault.get() is called.
void shutdown(T value)
When using the default implementation this is invoked when HystrixRequestContext.shutdown() is called.
The HystrixRequestVariable.get() method should not be called from within this method as it will result in HystrixRequestVariableLifecycle.initialValue() being called again.
value - of request variable to allow cleanup activity.
If nothing needs to be cleaned up then nothing needs to be done in this method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||