Package net.officefloor.spring.data
Class SpringDataThreadSynchroniser
java.lang.Object
net.officefloor.spring.data.SpringDataThreadSynchroniser
- All Implemented Interfaces:
ThreadSynchroniser
Spring Data
ThreadSynchroniser.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidResumes theThreadby loading the suspended state into theThreadLocalinstances of the currentThread.void
-
Constructor Details
-
SpringDataThreadSynchroniser
public SpringDataThreadSynchroniser()
-
-
Method Details
-
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
-