Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


ThreadInfojava.lang.management

Java 5.0

This
class represents information about a
thread from a ThreadMXBean. Some information, such
as thread name, id, state, and stack trace are also available through
the java.lang.Thread object. Other more useful
information includes the object upon which a thread is waiting and
the owner of the lock that the thread is trying to acquire. If
THReadMXBean indicates that thread contention
monitoring is supported and enabled, the
ThreadInfo methods getBlockedCount(
)
and getBlockedTime(
) return the number of times the thread has blocked or
waited and the amount of time it has spent in the blocked and waiting
states.

public class

ThreadInfo {
// No Constructor
// Public Class Methods
public static ThreadInfo

from (javax.management.openmbean.CompositeData

cd );
// Public Instance Methods
public long

getBlockedCount ( );
public long

getBlockedTime ( );
public String

getLockName ( );
public long

getLockOwnerId ( );
public String

getLockOwnerName ( );
public StackTraceElement[ ]

getStackTrace ( );
public long

getThreadId ( );
public String

getThreadName ( );
public Thread.State

getThreadState ( );
public long

getWaitedCount ( );
public long

getWaitedTime ( );
public boolean

isInNative ( );
public boolean

isSuspended ( );
// Public Methods Overriding Object
public String

toString ( );
}


Returned By


ThreadMXBean.getThreadInfo( )


    / 1191