Class Thread
public class Thread : JVMBridgeBase<Thread>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
- Inheritance
-
Thread
- Implements
- Derived
- Extension Methods
Constructors
Thread()
public Thread()
Thread(Runnable)
public Thread(Runnable arg0)
Parameters
Thread(Runnable, String)
public Thread(Runnable arg0, String arg1)
Parameters
Thread(String)
public Thread(String arg0)
Parameters
Thread(ThreadGroup, Runnable)
public Thread(ThreadGroup arg0, Runnable arg1)
Parameters
arg0ThreadGrouparg1Runnable
Thread(ThreadGroup, Runnable, String)
public Thread(ThreadGroup arg0, Runnable arg1, String arg2)
Parameters
arg0ThreadGrouparg1Runnablearg2String
Thread(ThreadGroup, Runnable, String, long)
public Thread(ThreadGroup arg0, Runnable arg1, String arg2, long arg3)
Parameters
arg0ThreadGrouparg1Runnablearg2Stringarg3long
Thread(ThreadGroup, Runnable, String, long, bool)
public Thread(ThreadGroup arg0, Runnable arg1, String arg2, long arg3, bool arg4)
Parameters
arg0ThreadGrouparg1Runnablearg2Stringarg3longarg4bool
Thread(ThreadGroup, String)
public Thread(ThreadGroup arg0, String arg1)
Parameters
arg0ThreadGrouparg1String
Thread(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Thread(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
MAX_PRIORITY
public static int MAX_PRIORITY { get; set; }
Property Value
MIN_PRIORITY
public static int MIN_PRIORITY { get; set; }
Property Value
NORM_PRIORITY
public static int NORM_PRIORITY { get; set; }
Property Value
Methods
ActiveCount()
public static int ActiveCount()
Returns
CheckAccess()
[Obsolete("Deprecated in JVM")]
public void CheckAccess()
CountStackFrames()
[Obsolete("Deprecated in JVM")]
public int CountStackFrames()
Returns
CreatePoolableInstance()
HPA initializer for Thread()
public static Thread CreatePoolableInstance()
Returns
CreatePoolableInstance(Runnable)
HPA initializer for Thread(Java.Lang.Runnable arg0)
public static Thread CreatePoolableInstance(Runnable arg0)
Parameters
arg0Runnable
Returns
CreatePoolableInstance(Runnable, String)
HPA initializer for Thread(Java.Lang.Runnable arg0, Java.Lang.String arg1)
public static Thread CreatePoolableInstance(Runnable arg0, String arg1)
Parameters
Returns
CreatePoolableInstance(String)
HPA initializer for Thread(Java.Lang.String arg0)
public static Thread CreatePoolableInstance(String arg0)
Parameters
arg0String
Returns
CreatePoolableInstance(ThreadGroup, Runnable)
HPA initializer for Thread(Java.Lang.ThreadGroup arg0, Java.Lang.Runnable arg1)
public static Thread CreatePoolableInstance(ThreadGroup arg0, Runnable arg1)
Parameters
arg0ThreadGrouparg1Runnable
Returns
CreatePoolableInstance(ThreadGroup, Runnable, String)
HPA initializer for Thread(Java.Lang.ThreadGroup arg0, Java.Lang.Runnable arg1, Java.Lang.String arg2)
public static Thread CreatePoolableInstance(ThreadGroup arg0, Runnable arg1, String arg2)
Parameters
arg0ThreadGrouparg1Runnablearg2String
Returns
CreatePoolableInstance(ThreadGroup, Runnable, String, long)
HPA initializer for Thread(Java.Lang.ThreadGroup arg0, Java.Lang.Runnable arg1, Java.Lang.String arg2, long arg3)
public static Thread CreatePoolableInstance(ThreadGroup arg0, Runnable arg1, String arg2, long arg3)
Parameters
arg0ThreadGrouparg1Runnablearg2Stringarg3long
Returns
CreatePoolableInstance(ThreadGroup, Runnable, String, long, bool)
HPA initializer for Thread(Java.Lang.ThreadGroup arg0, Java.Lang.Runnable arg1, Java.Lang.String arg2, long arg3, bool arg4)
public static Thread CreatePoolableInstance(ThreadGroup arg0, Runnable arg1, String arg2, long arg3, bool arg4)
Parameters
arg0ThreadGrouparg1Runnablearg2Stringarg3longarg4bool
Returns
CreatePoolableInstance(ThreadGroup, String)
HPA initializer for Thread(Java.Lang.ThreadGroup arg0, Java.Lang.String arg1)
public static Thread CreatePoolableInstance(ThreadGroup arg0, String arg1)
Parameters
arg0ThreadGrouparg1String
Returns
CurrentThread()
public static Thread CurrentThread()
Returns
DumpStack()
public static void DumpStack()
Enumerate(Thread[])
public static int Enumerate(Thread[] arg0)
Parameters
Returns
GetAllStackTraces()
public static Map<Thread, StackTraceElement[]> GetAllStackTraces()
Returns
GetContextClassLoader()
public ClassLoader GetContextClassLoader()
Returns
GetId()
public long GetId()
Returns
GetName()
public String GetName()
Returns
GetPriority()
public int GetPriority()
Returns
GetStackTrace()
public StackTraceElement[] GetStackTrace()
Returns
GetState()
public Thread.State GetState()
Returns
GetThreadGroup()
public ThreadGroup GetThreadGroup()
Returns
HoldsLock(object)
public static bool HoldsLock(object arg0)
Parameters
Returns
Interrupt()
public void Interrupt()
Interrupted()
public static bool Interrupted()
Returns
IsAlive()
public bool IsAlive()
Returns
IsDaemon()
public bool IsDaemon()
Returns
IsInterrupted()
public bool IsInterrupted()
Returns
Join()
public void Join()
Exceptions
Join(long)
public void Join(long arg0)
Parameters
Exceptions
Join(long, int)
public void Join(long arg0, int arg1)
Parameters
Exceptions
OnSpinWait()
public static void OnSpinWait()
Resume()
[Obsolete("Deprecated in JVM")]
public void Resume()
Run()
public void Run()
SetContextClassLoader(ClassLoader)
public void SetContextClassLoader(ClassLoader arg0)
Parameters
arg0ClassLoader
SetDaemon(bool)
public void SetDaemon(bool arg0)
Parameters
SetName(String)
public void SetName(String arg0)
Parameters
SetPriority(int)
public void SetPriority(int arg0)
Parameters
SetUncaughtExceptionHandler(UncaughtExceptionHandler)
Set the handler invoked when this thread abruptly terminates due to an uncaught exception.
public void SetUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)
Parameters
ehThread.UncaughtExceptionHandlerThe object to use as this thread's uncaught exception handler. If null then this thread has no explicit handler.
Sleep(long)
public static void Sleep(long arg0)
Parameters
Exceptions
Sleep(long, int)
public static void Sleep(long arg0, int arg1)
Parameters
Exceptions
Start()
public void Start()
Stop()
[Obsolete("Deprecated in JVM")]
public void Stop()
Suspend()
[Obsolete("Deprecated in JVM")]
public void Suspend()
Yield()
public static void Yield()
Operators
implicit operator Runnable(Thread)
public static implicit operator Runnable(Thread t)
Parameters
tThread