com.pega.pegarules.pub.context
Class ThreadContainer

java.lang.Object
  extended by com.pega.pegarules.pub.context.ThreadContainer

public class ThreadContainer
extends java.lang.Object

The ThreadContainer class acts as a container for the 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.)

Version:
$Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
Author:
Gabe Ernst-Edwards

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Constructor Summary
ThreadContainer()
           
 
Method Summary
static void clear()
           
static PRThread get()
           
static void put(PRThread aThread)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Constructor Detail

ThreadContainer

public ThreadContainer()
Method Detail

get

public static final PRThread get()

put

public static final void put(PRThread aThread)

clear

public static final void clear()


Copyright © 2012 Pegasystems Inc. All Rights Reserved.