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 void
resumeThread()
Resumes theThread
by loading the suspended state into theThreadLocal
instances of the currentThread
.void
suspendThread()
Suspends the currentThread
by: storingThreadLocal
state, and then clearing state off theThread
-
-
-
Method Detail
-
suspendThread
public void suspendThread()
Description copied from interface:ThreadSynchroniser
Suspends the currentThread
by:- storing
ThreadLocal
state, and then - clearing state off the
Thread
- Specified by:
suspendThread
in interfaceThreadSynchroniser
- storing
-
resumeThread
public void resumeThread()
Description copied from interface:ThreadSynchroniser
Resumes theThread
by loading the suspended state into theThreadLocal
instances of the currentThread
.- Specified by:
resumeThread
in interfaceThreadSynchroniser
-
-