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
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { 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
Methods
ActiveCount()
public static int ActiveCount()
Returns
CheckAccess()
[Obsolete]
public void CheckAccess()
CountStackFrames()
[Obsolete]
public int CountStackFrames()
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]
public void Resume()
Run()
public void Run()
SetContextClassLoader(ClassLoader)
public void SetContextClassLoader(ClassLoader arg0)
Parameters
arg0
ClassLoader
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
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()
Stop()
[Obsolete]
public void Stop()
Suspend()
[Obsolete]
public void Suspend()
Yield()
public static void Yield()
Operators
implicit operator Runnable(Thread)
public static implicit operator Runnable(Thread t)
Parameters
t
Thread