Interface ThreadSynchroniser

  • All Known Implementing Classes:
    SpringDataThreadSynchroniser

    public interface ThreadSynchroniser
    Synchronises the ThreadLocal instances on Thread to Thread interaction between Team instances.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void resumeThread()
      Resumes the Thread by loading the suspended state into the ThreadLocal instances of the current Thread.
      void suspendThread()
      Suspends the current Thread by: storing ThreadLocal state, and then clearing state off the Thread
    • Method Detail

      • suspendThread

        void suspendThread()
        Suspends the current Thread by:
        1. storing ThreadLocal state, and then
        2. clearing state off the Thread
      • resumeThread

        void resumeThread()
        Resumes the Thread by loading the suspended state into the ThreadLocal instances of the current Thread.