Class SpringDataThreadSynchroniser

    • Method Summary

      All Methods Instance Methods Concrete 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringDataThreadSynchroniser

        public SpringDataThreadSynchroniser()
    • Method Detail

      • suspendThread

        public void suspendThread()
        Description copied from interface: ThreadSynchroniser
        Suspends the current Thread by:
        1. storing ThreadLocal state, and then
        2. clearing state off the Thread
        Specified by:
        suspendThread in interface ThreadSynchroniser
      • resumeThread

        public void resumeThread()
        Description copied from interface: ThreadSynchroniser
        Resumes the Thread by loading the suspended state into the ThreadLocal instances of the current Thread.
        Specified by:
        resumeThread in interface ThreadSynchroniser