Interface Clearable
-
- All Known Subinterfaces:
ClearableContextManager<T>
- All Known Implementing Classes:
SpringSecurityContextManager
public interface ClearableInterface that marks an to be 'clearable'.Context managers that support clearing the active context for the current thread should implement the
Clearableinterface.Clearing the context removes not only an active context from the current thread, but also the potential stack of any parents. This operation is intended to only be used when re-using threads (e.g. when returning them to a thread-pool).
- Author:
- Sjoerd Talsma
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears the current context and any potential parent contexts that may be stacked.
-