com.ibm.dtfj.analyzer.j2se.wrappers
Class ThreadLocalWrapper.Data
java.lang.Object
com.ibm.dtfj.analyzer.j2se.wrappers.ThreadLocalWrapper.Data
- Enclosing class:
- ThreadLocalWrapper
public class ThreadLocalWrapper.Data
- extends java.lang.Object
An inner class used to represent the data contained in the original ThreadLocal for thread.
This data object represents a mapping between all the threads for which this ThreadLocal
has a value, and that value. Each thread is represented as a JavaThread,
and each value is represented as an ObjectWrapper.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getValueForThread
public ObjectWrapper getValueForThread(com.ibm.dtfj.java.JavaThread thread)
throws com.ibm.dtfj.image.DTFJException
- Return an ObjectWrapper that represents the data contained in the original ThreadLocal
for the specifed thread.
- Parameters:
thread
- a JavaThread that specifies which thread's thread-local data we want to retrieve
- Returns:
- an ObjectWrapper that represents the data contained in the original ThreadLocal
for the specified thread.
- Throws:
com.ibm.dtfj.image.DTFJException
getThreadsWithValue
public java.util.Set getThreadsWithValue()
- Returns:
- a Set containing each JavaThread for which this ThreadLocal has a non-null value
countThreadsWithValue
public int countThreadsWithValue()
- Returns:
- the number of threads for which this ThreadLocal has a non-null value
© Copyright IBM Corp. 2007, 2008 All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted
by GSA ADP Schedule Contract with IBM Corp.