|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.aggregator.CurrentWorkerContext
public final class CurrentWorkerContext
Maintains a context attributes for the current Thread
Field Summary | |
---|---|
private static ThreadLocal |
currentWorkerContext
|
private static ThreadLocal |
parallelRenderingMode
|
Constructor Summary | |
---|---|
private |
CurrentWorkerContext()
|
Method Summary | |
---|---|
static Object |
getAttribute(String name)
|
static Enumeration |
getAttributeNames()
Returns an Enumeration containing the names of the attributes available to this Thread. |
static boolean |
getParallelRenderingMode()
|
static void |
removeAllAttributes()
Removes all attributes from this Thread. |
static void |
removeAttribute(String name)
Removes an attribute from this Thread. |
static void |
setAttribute(String name,
Object o)
Stores an attribute in this Thread. |
static void |
setParallelRenderingMode(boolean parallelMode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static ThreadLocal currentWorkerContext
private static ThreadLocal parallelRenderingMode
Constructor Detail |
---|
private CurrentWorkerContext()
Method Detail |
---|
public static Enumeration getAttributeNames()
public static Object getAttribute(String name)
attrName
- Locale for this Thread
public static void setAttribute(String name, Object o)
name
- - a String specifying the name of the attributeo
- - the Object to be storedpublic static void removeAttribute(String name)
name
- - a String specifying the name of the attributepublic static void removeAllAttributes()
public static void setParallelRenderingMode(boolean parallelMode)
public static boolean getParallelRenderingMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |