Interface ThreadEvent

All Superinterfaces:
BaseEvent
All Known Implementing Classes:
ThreadEventObject

public interface ThreadEvent extends BaseEvent
This class defines the values returned when a class event takes place and is used by the ClassesEventListener interface
  • Method Details

    • getThreadName

      String getThreadName()
      Gets the name of the thread
      Returns:
      Class name
    • getThreadID

      long getThreadID()
      Returns:
      id of the thread
    • getState

      String getState()
      Returns:
      the current state of the thread
    • getNumMonitorsOwned

      int getNumMonitorsOwned()
      Returns:
      the number of monitors owned
    • getOwnedMonitors

      MonitorInfo[] getOwnedMonitors()
      Returns:
      array of MonitorInfo objects
    • getLocksOwned

      LockInfo[] getLocksOwned()
      Returns:
      array of LockInfo objects
    • getContendedMonitor

      String getContendedMonitor()
      Returns:
      Name of monitor blocking this thread
    • getThreadCallStack

      StackTraceElement[] getThreadCallStack()
      Returns:
      array of the call stack creating this thread