1 7 8 package java.lang.management; 9 10 81 public interface ThreadMXBean { 82 88 public int getThreadCount(); 89 90 96 public int getPeakThreadCount(); 97 98 104 public long getTotalStartedThreadCount(); 105 106 111 public int getDaemonThreadCount(); 112 113 124 public long[] getAllThreadIds(); 125 126 161 public ThreadInfo getThreadInfo(long id); 162 163 198 public ThreadInfo [] getThreadInfo(long[] ids); 199 200 243 public ThreadInfo getThreadInfo(long id, int maxDepth); 244 245 292 public ThreadInfo [] getThreadInfo(long[] ids, int maxDepth); 293 294 302 public boolean isThreadContentionMonitoringSupported(); 303 304 315 public boolean isThreadContentionMonitoringEnabled(); 316 317 333 public void setThreadContentionMonitoringEnabled(boolean enable); 334 335 362 public long getCurrentThreadCpuTime(); 363 364 389 public long getCurrentThreadUserTime(); 390 391 426 public long getThreadCpuTime(long id); 427 428 461 public long getThreadUserTime(long id); 462 463 476 public boolean isThreadCpuTimeSupported(); 477 478 490 public boolean isCurrentThreadCpuTimeSupported(); 491 492 505 public boolean isThreadCpuTimeEnabled(); 506 507 525 public void setThreadCpuTimeEnabled(boolean enable); 526 527 552 public long[] findMonitorDeadlockedThreads(); 553 554 565 public void resetPeakThreadCount(); 566 } 567 568 | Popular Tags |