W3cubDocs

/Haxe Java

Thread

package java.lang

implements Runnable

extended by Reference_ReferenceHandler

@:libType@:javaNative@:native("java.lang.Thread")@:javaCanonical("java.lang","Thread") Available on java

Constructor

@:overload new (param1:ThreadGroup, param2:Runnable, param3:String, param4:Int64)

@:overload new ()

@:overload new (param1:Runnable)

@:overload new (param1:ThreadGroup, param2:Runnable)

@:overload new (param1:String)

@:overload new (param1:ThreadGroup, param2:String)

@:overload new (param1:Runnable, param2:String)

@:overload new (param1:ThreadGroup, param2:Runnable, param3:String)

Methods

@:overload @:final checkAccess ():Void

@:overload countStackFrames ():Int

Deprecated:

@:overload destroy ():Void

Deprecated:

@:overload getContextClassLoader ():ClassLoader

@:overload getId ():Int64

@:overload @:final getName ():String

@:overload @:final getPriority ():Int

@:overload getStackTrace ():NativeArray<StackTraceElement>

@:overload getState ():Thread_State

@:overload @:final getThreadGroup ():ThreadGroup

@:overload getUncaughtExceptionHandler ():Thread_UncaughtExceptionHandler

@:overload interrupt ():Void

@:overload @:final isAlive ():Bool

@:overload @:final isDaemon ():Bool

@:overload isInterrupted ():Bool

@:overload @:throws("java.lang.InterruptedException") @:final join ():Void

@:overload @:throws("java.lang.InterruptedException") @:final join (param1:Int64):Void

@:overload @:throws("java.lang.InterruptedException") @:final join (param1:Int64, param2:Int):Void

@:overload @:final resume ():Void

Deprecated:

@:overload run ():Void

@:overload setContextClassLoader (param1:ClassLoader):Void

@:overload @:final setDaemon (param1:Bool):Void

@:overload @:final setName (param1:String):Void

@:overload @:final setPriority (param1:Int):Void

@:overload setUncaughtExceptionHandler (param1:Thread_UncaughtExceptionHandler):Void

@:overload start ():Void

@:overload @:final stop (param1:Throwable):Void

@:overload @:final stop ():Void

Deprecated:

@:overload @:final suspend ():Void

Deprecated:

@:overload toString ():String

Static variables

@:final static read only MAX_PRIORITY:Int

@:final static read only MIN_PRIORITY:Int

@:final static read only NORM_PRIORITY:Int

Static methods

@:overload static activeCount ():Int

@:overload static currentThread ():Thread

@:overload static dumpStack ():Void

@:overload static enumerate (param1:NativeArray<Thread>):Int

@:overload static getAllStackTraces ():Map<Thread, NativeArray<StackTraceElement>>

@:overload static getDefaultUncaughtExceptionHandler ():Thread_UncaughtExceptionHandler

@:overload static holdsLock (param1:Dynamic):Bool

@:overload static interrupted ():Bool

@:overload static setDefaultUncaughtExceptionHandler (param1:Thread_UncaughtExceptionHandler):Void

@:overload @:throws("java.lang.InterruptedException") static sleep (param1:Int64, param2:Int):Void

@:overload @:throws("java.lang.InterruptedException") static sleep (param1:Int64):Void

@:overload static yield ():Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/lang/Thread.html