public class WaitHandle extends MarshalByRefObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.WaitHandle
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Threading.WaitHandle
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
WaitHandle() |
WaitHandle(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static WaitHandle |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into WaitHandle, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close() |
void |
Dispose() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
SafeWaitHandle |
getSafeWaitHandle() |
void |
setJCOInstance(JCObject instance) |
void |
setSafeWaitHandle(SafeWaitHandle SafeWaitHandle) |
static boolean |
SignalAndWait(WaitHandle toSignal,
WaitHandle toWaitOn) |
static boolean |
SignalAndWait(WaitHandle toSignal,
WaitHandle toWaitOn,
int millisecondsTimeout,
boolean exitContext) |
static boolean |
SignalAndWait(WaitHandle toSignal,
WaitHandle toWaitOn,
TimeSpan timeout,
boolean exitContext) |
static boolean |
WaitAll(WaitHandle[] waitHandles) |
static boolean |
WaitAll(WaitHandle[] waitHandles,
int millisecondsTimeout) |
static boolean |
WaitAll(WaitHandle[] waitHandles,
int millisecondsTimeout,
boolean exitContext) |
static boolean |
WaitAll(WaitHandle[] waitHandles,
TimeSpan timeout) |
static boolean |
WaitAll(WaitHandle[] waitHandles,
TimeSpan timeout,
boolean exitContext) |
static int |
WaitAny(WaitHandle[] waitHandles) |
static int |
WaitAny(WaitHandle[] waitHandles,
int millisecondsTimeout) |
static int |
WaitAny(WaitHandle[] waitHandles,
int millisecondsTimeout,
boolean exitContext) |
static int |
WaitAny(WaitHandle[] waitHandles,
TimeSpan timeout) |
static int |
WaitAny(WaitHandle[] waitHandles,
TimeSpan timeout,
boolean exitContext) |
boolean |
WaitOne() |
boolean |
WaitOne(int millisecondsTimeout) |
boolean |
WaitOne(int millisecondsTimeout,
boolean exitContext) |
boolean |
WaitOne(TimeSpan timeout) |
boolean |
WaitOne(TimeSpan timeout,
boolean exitContext) |
GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public WaitHandle()
throws java.lang.Throwable
java.lang.Throwablepublic WaitHandle(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static WaitHandle cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into WaitHandle, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedWaitHandle instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionpublic void Dispose()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MarshalByRefObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MarshalByRefObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MarshalByRefObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MarshalByRefObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class MarshalByRefObjectJCType representing the CLR Type of the instantiated Classpublic SafeWaitHandle getSafeWaitHandle() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic void setSafeWaitHandle(SafeWaitHandle SafeWaitHandle) throws java.lang.Throwable
java.lang.Throwablepublic static boolean SignalAndWait(WaitHandle toSignal, WaitHandle toWaitOn) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ObjectDisposedException, AbandonedMutexException
public static boolean SignalAndWait(WaitHandle toSignal, WaitHandle toWaitOn, int millisecondsTimeout, boolean exitContext) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ObjectDisposedException, AbandonedMutexException
public static boolean SignalAndWait(WaitHandle toSignal, WaitHandle toWaitOn, TimeSpan timeout, boolean exitContext) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexExceptionpublic static boolean WaitAll(WaitHandle[] waitHandles) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, ObjectDisposedException, AbandonedMutexException
public static boolean WaitAll(WaitHandle[] waitHandles, int millisecondsTimeout) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, ObjectDisposedException, AbandonedMutexException
public static boolean WaitAll(WaitHandle[] waitHandles, int millisecondsTimeout, boolean exitContext) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, ObjectDisposedException, AbandonedMutexException
public static boolean WaitAll(WaitHandle[] waitHandles, TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexExceptionpublic static boolean WaitAll(WaitHandle[] waitHandles, TimeSpan timeout, boolean exitContext) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexExceptionpublic static int WaitAny(WaitHandle[] waitHandles) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, ObjectDisposedException, AbandonedMutexException
public static int WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, ObjectDisposedException, AbandonedMutexException
public static int WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout, boolean exitContext) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, ObjectDisposedException, AbandonedMutexException
public static int WaitAny(WaitHandle[] waitHandles, TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexExceptionpublic static int WaitAny(WaitHandle[] waitHandles, TimeSpan timeout, boolean exitContext) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexExceptionpublic boolean WaitOne()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
ArgumentNullException,
AbandonedMutexException
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionArgumentNullExceptionAbandonedMutexExceptionpublic boolean WaitOne(int millisecondsTimeout)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexExceptionpublic boolean WaitOne(int millisecondsTimeout,
boolean exitContext)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexExceptionpublic boolean WaitOne(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexExceptionpublic boolean WaitOne(TimeSpan timeout, boolean exitContext) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, AbandonedMutexException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionAbandonedMutexException