Interface ThreadLocalStateAccessor
- All Known Implementing Classes:
CrowdThreadLocalStateAccessor
public interface ThreadLocalStateAccessor
Service to access the application's ThreadLocal state.
- Since:
- v2.7
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the all the thread locals for the current thread.getState()
Return the state of all the thread locals for the current thread.void
setState
(ThreadLocalState state) Set the thread locals of the current thread with the values contained in the supplied state.
-
Method Details
-
getState
ThreadLocalState getState()Return the state of all the thread locals for the current thread.- Returns:
- a
ThreadLocalState
-
setState
Set the thread locals of the current thread with the values contained in the supplied state.- Parameters:
state
- aThreadLocalState
-
clearState
void clearState()Clear the all the thread locals for the current thread.
-