|
eXo Kernel :: Container 2.4.13-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.component.ThreadContext
public class ThreadContext
This component contains all the variables of type ThreadLocal hold by a ThreadContextHolder
This component has not been designed to be thread safe so ensure that you create
a new instance each time you use it. Moreover for security reason, when the
SecurityManager is installed we check the RuntimePermission
manageThreadLocal only within the constructor of a ThreadContext.
| Constructor Summary | |
|---|---|
ThreadContext(ThreadLocal<?>... threadLocals)
Default constructor |
|
| Method Summary | |
|---|---|
void |
push()
Pushes values stored into memory into all the Thread Local variables and keeps previous values to be able to restore old state |
void |
restore()
Restores the old values of all the Thread Local variables |
void |
store()
Stores into memory the current values of all the Thread Local variables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadContext(ThreadLocal<?>... threadLocals)
threadLocals - the thread local variables whose value
must be transfered from one thread to another to avoid critical issues.
SecurityException - In case the
security manager is installed and the calling stack doesn't have
the RuntimePermission manageThreadLocal| Method Detail |
|---|
public void store()
public void push()
public void restore()
|
eXo Kernel :: Container 2.4.13-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||