Package net.officefloor.spring.data
Class SpringDataThreadSynchroniser
- java.lang.Object
-
- net.officefloor.spring.data.SpringDataThreadSynchroniser
-
- All Implemented Interfaces:
ThreadSynchroniser
public class SpringDataThreadSynchroniser extends java.lang.Object implements ThreadSynchroniser
Spring DataThreadSynchroniser.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SpringDataThreadSynchroniser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidresumeThread()Resumes theThreadby loading the suspended state into theThreadLocalinstances of the currentThread.voidsuspendThread()Suspends the currentThreadby: storingThreadLocalstate, and then clearing state off theThread
-
-
-
Method Detail
-
suspendThread
public void suspendThread()
Description copied from interface:ThreadSynchroniserSuspends the currentThreadby:- storing
ThreadLocalstate, and then - clearing state off the
Thread
- Specified by:
suspendThreadin interfaceThreadSynchroniser
- storing
-
resumeThread
public void resumeThread()
Description copied from interface:ThreadSynchroniserResumes theThreadby loading the suspended state into theThreadLocalinstances of the currentThread.- Specified by:
resumeThreadin interfaceThreadSynchroniser
-
-