Interface Clearable

  • All Known Subinterfaces:
    ClearableContextManager<T>
    All Known Implementing Classes:
    SpringSecurityContextManager

    public interface Clearable
    Interface that marks an to be 'clearable'.

    Context managers that support clearing the active context for the current thread should implement the Clearable interface.

    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
      void clear()
      Clears the current context and any potential parent contexts that may be stacked.
    • Method Detail

      • clear

        void clear()
        Clears the current context and any potential parent contexts that may be stacked.