public class Mutex extends WaitHandle
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Threading.Mutex
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=11.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.Mutex
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Mutex()
Initializes a new instance by invoking the .NET constructor.
|
Mutex(boolean initiallyOwned)
Initializes a new instance by invoking the .NET constructor.
|
Mutex(boolean initiallyOwned,
java.lang.String name)
Initializes a new instance by invoking the .NET constructor.
|
Mutex(boolean initiallyOwned,
java.lang.String name,
boolean createdNew)
Initializes a new instance by invoking the .NET constructor.
|
Mutex(boolean initiallyOwned,
java.lang.String name,
NamedWaitHandleOptions options)
Initializes a new instance by invoking the .NET constructor.
|
Mutex(boolean initiallyOwned,
java.lang.String name,
NamedWaitHandleOptions options,
boolean createdNew)
Initializes a new instance by invoking the .NET constructor.
|
Mutex(java.lang.Object instance)
Internal constructor.
|
Mutex(java.lang.String name,
NamedWaitHandleOptions options)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Mutex |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Mutex, a cast assert is made to check if types are compatible. |
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
static Mutex |
OpenExisting(java.lang.String name)
Invokes the .NET member OpenExisting.
|
static Mutex |
OpenExisting(java.lang.String name,
NamedWaitHandleOptions options)
Invokes the .NET member OpenExisting.
|
void |
ReleaseMutex()
Invokes the .NET member ReleaseMutex.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
static boolean |
TryOpenExisting(java.lang.String name,
JCORefOut<Mutex> result)
Invokes the .NET member TryOpenExisting.
|
static boolean |
TryOpenExisting(java.lang.String name,
NamedWaitHandleOptions options,
JCORefOut<Mutex> result)
Invokes the .NET member TryOpenExisting.
|
close, Close, Dispose, getSafeWaitHandle, setSafeWaitHandle, SignalAndWait, SignalAndWait, SignalAndWait, WaitAll, WaitAll, WaitAll, WaitAll, WaitAll, WaitAny, WaitAny, WaitAny, WaitAny, WaitAny, WaitOne, WaitOne, WaitOne, WaitOne, WaitOneGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Mutex()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
MissingMethodException,
TargetInvocationException,
ObjectDisposedException,
InvalidOperationException,
FormatException,
OutOfMemoryException
java.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic Mutex(boolean initiallyOwned)
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
MissingMethodException,
TargetInvocationException,
ObjectDisposedException,
InvalidOperationException,
FormatException,
OutOfMemoryException
initiallyOwned - the argument of type booleanjava.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic Mutex(boolean initiallyOwned,
java.lang.String name)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
WaitHandleCannotBeOpenedException
initiallyOwned - the argument of type booleanname - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itpublic Mutex(boolean initiallyOwned,
java.lang.String name,
boolean createdNew)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
WaitHandleCannotBeOpenedException
initiallyOwned - the argument of type booleanname - the argument of type java.lang.StringcreatedNew - the argument of type booleanjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itpublic Mutex(boolean initiallyOwned,
java.lang.String name,
NamedWaitHandleOptions options)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
WaitHandleCannotBeOpenedException
initiallyOwned - the argument of type booleanname - the argument of type java.lang.Stringoptions - the argument of type NamedWaitHandleOptionsjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itpublic Mutex(boolean initiallyOwned,
java.lang.String name,
NamedWaitHandleOptions options,
boolean createdNew)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
WaitHandleCannotBeOpenedException
initiallyOwned - the argument of type booleanname - the argument of type java.lang.Stringoptions - the argument of type NamedWaitHandleOptionscreatedNew - the argument of type booleanjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itpublic Mutex(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic Mutex(java.lang.String name,
NamedWaitHandleOptions options)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
WaitHandleCannotBeOpenedException
name - the argument of type java.lang.Stringoptions - the argument of type NamedWaitHandleOptionsjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itpublic static Mutex cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Mutex, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMutex instancejava.lang.Throwable - in case of error during cast operationpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class WaitHandlepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class WaitHandlepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class WaitHandlenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class WaitHandlepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class WaitHandlepublic static Mutex OpenExisting(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, OutOfMemoryException, CultureNotFoundException, NullReferenceException, ExternalException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, ObjectDisposedException, FormatException, WaitHandleCannotBeOpenedException, DirectoryNotFoundException
name - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itFormatException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itDirectoryNotFoundException - if the .NET member raises itpublic static Mutex OpenExisting(java.lang.String name, NamedWaitHandleOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, OutOfMemoryException, CultureNotFoundException, NullReferenceException, ExternalException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, ObjectDisposedException, FormatException, WaitHandleCannotBeOpenedException, DirectoryNotFoundException
name - the argument of type java.lang.Stringoptions - the argument of type NamedWaitHandleOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itFormatException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itDirectoryNotFoundException - if the .NET member raises itpublic void ReleaseMutex()
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException,
ObjectDisposedException,
ApplicationException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itApplicationException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class WaitHandleinstance - the new underlying objectpublic static boolean TryOpenExisting(java.lang.String name,
JCORefOut<Mutex> result)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
ObjectDisposedException,
FormatException
name - the argument of type java.lang.Stringresult - the argument of type JCORefOut<Mutex>java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itFormatException - if the .NET member raises itpublic static boolean TryOpenExisting(java.lang.String name,
NamedWaitHandleOptions options,
JCORefOut<Mutex> result)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException,
ArgumentOutOfRangeException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
ObjectDisposedException,
FormatException
name - the argument of type java.lang.Stringoptions - the argument of type NamedWaitHandleOptionsresult - the argument of type JCORefOut<Mutex>java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itExternalException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itFormatException - if the .NET member raises it