Class Thread
public class Thread : JVMBridgeBase<Thread>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Thread>Thread
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<Thread>.IsAssignableFrom(IJavaType)JVMBridgeBase<Thread>.IsAssignableFrom<T>()JVMBridgeBase<Thread>.Execute<T>(params T[])JVMBridgeBase<Thread>.DynBridgeClazzJVMBridgeBase<Thread>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Thread()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
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
arg0
ThreadGrouparg1
Runnable
Thread(ThreadGroup, Runnable, String)
public Thread(ThreadGroup arg0, Runnable arg1, String arg2)
Parameters
arg0
ThreadGrouparg1
Runnablearg2
String
Thread(ThreadGroup, Runnable, String, long)
public Thread(ThreadGroup arg0, Runnable arg1, String arg2, long arg3)
Parameters
arg0
ThreadGrouparg1
Runnablearg2
Stringarg3
long
Thread(ThreadGroup, Runnable, String, long, bool)
public Thread(ThreadGroup arg0, Runnable arg1, String arg2, long arg3, bool arg4)
Parameters
arg0
ThreadGrouparg1
Runnablearg2
Stringarg3
longarg4
bool
Thread(ThreadGroup, String)
public Thread(ThreadGroup arg0, String arg1)
Parameters
arg0
ThreadGrouparg1
String
Thread(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Thread(params object[] args)
Parameters
args
object[]
Properties
AllStackTraces
public static Map<Thread, StackTraceElement[]> AllStackTraces { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
ContextClassLoader
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html#getContextClassLoader() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html#setContextClassLoader(java.lang.ClassLoader)
public ClassLoader ContextClassLoader { get; set; }
Property Value
GetState
public Thread.State GetState { get; }
Property Value
Id
public long Id { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
MAX_PRIORITY
public static int MAX_PRIORITY { get; }
Property Value
MIN_PRIORITY
public static int MIN_PRIORITY { get; }
Property Value
NORM_PRIORITY
public static int NORM_PRIORITY { get; }
Property Value
Name
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html#getName() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html#setName(java.lang.String)
public String Name { get; set; }
Property Value
Priority
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html#getPriority() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html#setPriority(int)
public int Priority { get; set; }
Property Value
StackTrace
public StackTraceElement[] StackTrace { get; }
Property Value
ThreadGroup
public ThreadGroup ThreadGroup { get; }
Property Value
Methods
ActiveCount()
public static int ActiveCount()
Returns
CheckAccess()
public void CheckAccess()
CurrentThread()
public static Thread CurrentThread()
Returns
DumpStack()
public static void DumpStack()
Enumerate(Thread[])
public static int Enumerate(Thread[] arg0)
Parameters
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()
Run()
public void Run()
SetDaemon(bool)
public void SetDaemon(bool 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
eh
Thread.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()
Yield()
public static void Yield()
Operators
implicit operator Runnable(Thread)
public static implicit operator Runnable(Thread t)
Parameters
t
Thread