public class ThreadContainer
extends java.lang.Object
PRThread
object associated with the current Java thread. This is accomplished
through the use of a ThreadLocal object and static methods. This object should not be used if a local mThread is available, since use of ThreadContainer will be much less efficient than a local variable.
If you use change the PRThread associated with the Java thread, then you should be sure to restore the the thread which was previously there when you are finished. (If there was no PRThread previously there, then you should ensure that there is no PRThread when you are finshed.)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static com.pega.pegarules.priv.LogHelper |
mtThreadContainerLog |
static java.lang.String |
VERSION |
Constructor and Description |
---|
ThreadContainer() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
static PRThread |
get() |
static void |
put(PRThread aThread) |
public static final java.lang.String COPYRIGHT
public static final com.pega.pegarules.priv.LogHelper mtThreadContainerLog
public static final java.lang.String VERSION
Copyright © 2018 Pegasystems Inc. All Rights Reserved.