trait ThreadMXBean extends AnyRef
- Alphabetic
- By Inheritance
- ThreadMXBean
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def dumpAllThreads(lockedMonitors: scala.Boolean, lockedSynchronizers: scala.Boolean, maxDepth: Int): Array[ThreadInfo]
Returns a ThreadInfo for every available thread.
Returns a ThreadInfo for every available thread.
- lockedMonitors
whether to dump locked monitors. it has no effect currently
- lockedSynchronizers
whether to dump locked synchronizers. it has no effect currently
- maxDepth
the max depth of a stacktrace, must be non-negative (>= 0). it has no effect currently
- abstract def dumpAllThreads(lockedMonitors: scala.Boolean, lockedSynchronizers: scala.Boolean): Array[ThreadInfo]
Returns a ThreadInfo for every available thread.
Returns a ThreadInfo for every available thread.
An equivalent of
dumpAllThread(lockedMonitors, lockedSynchronizers, 0)
.- lockedMonitors
whether to dump locked monitors. it has no effect currently
- lockedSynchronizers
whether to dump locked synchronizers. it has no effect currently
- Note
the stacktrace will not be filled. Use overloaded alternative with the
maxDepth
parameter to get the stacktrace.
- abstract def getAllThreadIds(): Array[scala.Long]
Returns IDs of all threads.
- abstract def getDaemonThreadCount(): Int
Returns the current number of daemon threads.
- abstract def getThreadCount(): Int
Returns the current number of threads.
- abstract def getThreadInfo(ids: Array[scala.Long], maxDepth: Int): Array[ThreadInfo]
Returns ThreadInfo for the given thread ids.
Returns ThreadInfo for the given thread ids. Returns
null
for the corresponding array element if the info is unavailable for the given id (thread doesn't exist).- ids
the IDs of the threads, each id must be positive (> 0)
- maxDepth
the max depth of a stacktrace, must be non-negative (>= 0). it has no effect currently
- abstract def getThreadInfo(id: scala.Long, maxDepth: Int): ThreadInfo
Returns a ThreadInfo for the given thread id.
Returns a ThreadInfo for the given thread id. Returns
null
if the info is unavailable for the given id (thread doesn't exist).- id
the id of the thread, must be positive (> 0)
- maxDepth
the max depth of a stacktrace, must be non-negative (>= 0). it has no effect currently
- abstract def getThreadInfo(ids: Array[scala.Long]): Array[ThreadInfo]
Returns a ThreadInfo for threads with corresponding ids.
Returns a ThreadInfo for threads with corresponding ids. Returns
null
for the corresponding array element if the info is unavailable for the given id (thread doesn't exist).An equivalent of
getThreadInfo(ids, 0)
.- ids
the IDs of the threads, each id must be positive (> 0).
- abstract def getThreadInfo(id: scala.Long): ThreadInfo
Returns a ThreadInfo for a thread with the given
id
.Returns a ThreadInfo for a thread with the given
id
. Returnsnull
if the info is unavailable for the given id (thread doesn't exist).An equivalent of
getThreadInfo(id, 0)
.- id
the id of the thread
Concrete Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()