Module kivakit.core

Class ThreadStatus

java.lang.Object
com.telenav.kivakit.core.vm.ThreadStatus

public class ThreadStatus extends Object
Information about the state of a thread from Java's management API.
Author:
jonathanl (shibo)
  • Constructor Details

    • ThreadStatus

      public ThreadStatus()
  • Method Details

    • cpuTime

      public Duration cpuTime()
      Returns:
      The CPU time consumed by this thread
    • identifier

      public long identifier()
    • isDaemon

      public boolean isDaemon()
      Returns:
      True if this thread is a daemon
    • isKivaKit

      public boolean isKivaKit()
      Returns:
      True if this is a KivaKit thread
    • name

      public String name()
      Returns:
      The name of this thread
    • state

      public Thread.State state()
      Returns:
      This thread's state according to Java