Yazi Ekle
-
java
|
javax
|
org
java
>
java.lang
>
java.lang.Thread
>
Class: java.lang.Thread
java.lang.Object
java.lang.Thread
public class
Thread
extends
Object
implements
Runnable
Inner Class(es):
Thread.State
,
Thread.UncaughtExceptionHandler
FIELDS:
public static final int
MAX_PRIORITY
: 10
public static final int
MIN_PRIORITY
: 1
public static final int
NORM_PRIORITY
: 5
CONSTRUCTORS:
public
Thread
()
public
Thread
(
Runnable
target)
public
Thread
(
ThreadGroup
group,
Runnable
target)
public
Thread
(
String
name)
public
Thread
(
ThreadGroup
group,
String
name)
public
Thread
(
Runnable
target,
String
name)
public
Thread
(
ThreadGroup
group,
Runnable
target,
String
name)
public
Thread
(
ThreadGroup
group,
Runnable
target,
String
name, long stackSize)
METHODS:
public static
int
activeCount
()
public final
void
checkAccess
()
Throws:
SecurityException
public
int
countStackFrames
()
Throws:
IllegalThreadStateException
public static
Thread
currentThread
()
public
void
destroy
()
Throws:
NoSuchMethodError
public static
void
dumpStack
()
public static
int
enumerate
(
Thread
[] tarray)
Throws:
SecurityException
public static
Map
getAllStackTraces
()
Throws:
SecurityException
public
ClassLoader
getContextClassLoader
()
Throws:
SecurityException
public static
Thread.UncaughtExceptionHandler
getDefaultUncaughtExceptionHandler
()
public
long
getId
()
public final
String
getName
()
public final
int
getPriority
()
public
StackTraceElement
[]
getStackTrace
()
Throws:
SecurityException
public
Thread.State
getState
()
public final
ThreadGroup
getThreadGroup
()
public
Thread.UncaughtExceptionHandler
getUncaughtExceptionHandler
()
public static
boolean
holdsLock
(
Object
obj)
Throws:
NullPointerException
public
void
interrupt
()
Throws:
SecurityException
public static
boolean
interrupted
()
public final
boolean
isAlive
()
public final
boolean
isDaemon
()
public
boolean
isInterrupted
()
public final
void
join
()
Throws:
InterruptedException
public final
void
join
(long millis)
Throws:
InterruptedException
public final
void
join
(long millis, int nanos)
Throws:
IllegalArgumentException
Throws:
InterruptedException
public final
void
resume
()
Throws:
SecurityException
public
void
run
()
public
void
setContextClassLoader
(
ClassLoader
cl)
Throws:
SecurityException
public final
void
setDaemon
(boolean on)
Throws:
IllegalThreadStateException
Throws:
SecurityException
public static
void
setDefaultUncaughtExceptionHandler
(
Thread.UncaughtExceptionHandler
eh)
Throws:
SecurityException
public final
void
setName
(
String
name)
Throws:
SecurityException
public final
void
setPriority
(int newPriority)
Throws:
IllegalArgumentException
Throws:
SecurityException
public
void
setUncaughtExceptionHandler
(
Thread.UncaughtExceptionHandler
eh)
Throws:
SecurityException
public static
void
sleep
(long millis)
Throws:
InterruptedException
public static
void
sleep
(long millis, int nanos)
Throws:
IllegalArgumentException
Throws:
InterruptedException
public
void
start
()
Throws:
IllegalThreadStateException
public final
void
stop
()
Throws:
SecurityException
public final
void
stop
(
Throwable
obj)
Throws:
SecurityException
Throws:
NullPointerException
public final
void
suspend
()
Throws:
SecurityException
public
String
toString
()
Overrides:
Object
public static
void
yield
()
INHERITED METHODS:
getClass()
,
hashCode()
,
equals(java.lang.Object)
,
clone()
,
toString()
,
notify()
,
notifyAll()
,
wait(long)
,
wait(long, int)
,
wait()
,
finalize()
,
SUBCLASSES:
Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net //
Twitter