|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sofya.ed.semantic.EventListener.ThreadData
public static class EventListener.ThreadData
Provides information about the thread on which an observable event has occurred.
Method Summary | |
---|---|
int |
getId()
Gets the unique integer identifier assigned to the thread by the event dispatching framework. |
java.lang.String |
getName()
Gets the name of the thread, as reported by the JVM. |
EventListener.ObjectData |
getObject()
Gets a handle to the thread object itself. |
long |
getObjectId()
Gets the unique identifier associated with the thread object by the JVM. |
EventListener.ObjectData |
getRunnableTarget()
Gets the runnable object that will be executed by this thread, if any. |
EventListener.ThreadStatus |
getStatus()
Gets the thread's status, as reported by the JVM. |
gnu.trove.TLongHashSet |
ownedMonitorIds()
Gets the IDs of all the objects whose monitors are held by this thread. |
EventListener.ObjectData[] |
ownedMonitors()
Gets the monitors held by this thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getId()
public long getObjectId()
This method will succeed even if the thread has stopped running and/or has been garbage collected.
public java.lang.String getName()
public EventListener.ThreadStatus getStatus()
public EventListener.ObjectData getRunnableTarget()
Runnable
interface that is the target to be executed by this thread.
null
if no runnable target was specified for this
thread (e.g. if it is subclassed with an override of
run()
).public EventListener.ObjectData getObject()
java.lang.Thread
.public EventListener.ObjectData[] ownedMonitors()
public gnu.trove.TLongHashSet ownedMonitorIds()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |