public class Semaphore extends WaitHandle
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Semaphore
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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System
|
static java.lang.String |
className
Qualified class name: System.Threading.Semaphore
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Semaphore() |
Semaphore(int initialCount,
int maximumCount) |
Semaphore(int initialCount,
int maximumCount,
java.lang.String name) |
Semaphore(int initialCount,
int maximumCount,
java.lang.String name,
boolean createdNew) |
Semaphore(int initialCount,
int maximumCount,
java.lang.String name,
boolean createdNew,
SemaphoreSecurity semaphoreSecurity) |
Semaphore(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Semaphore |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Semaphore, a cast assert is made to check if types are compatible. |
SemaphoreSecurity |
GetAccessControl() |
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
|
static Semaphore |
OpenExisting(java.lang.String name) |
static Semaphore |
OpenExisting(java.lang.String name,
SemaphoreRights rights) |
int |
Release() |
int |
Release(int releaseCount) |
void |
SetAccessControl(SemaphoreSecurity semaphoreSecurity) |
void |
setJCOInstance(JCObject instance) |
static boolean |
TryOpenExisting(java.lang.String name,
JCORefOut<Semaphore> result) |
static boolean |
TryOpenExisting(java.lang.String name,
SemaphoreRights rights,
JCORefOut<Semaphore> result) |
close, Close, Dispose, getSafeWaitHandle, setSafeWaitHandle, SignalAndWait, SignalAndWait, SignalAndWait, WaitAll, WaitAll, WaitAll, WaitAll, WaitAll, WaitAny, WaitAny, WaitAny, WaitAny, WaitAny, WaitOne, WaitOne, WaitOne, WaitOne, WaitOneCreateObjRef, GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Semaphore()
throws java.lang.Throwable
java.lang.Throwablepublic Semaphore(int initialCount,
int maximumCount)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
WaitHandleCannotBeOpenedException,
IOException,
UnauthorizedAccessException,
PathTooLongException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionWaitHandleCannotBeOpenedExceptionIOExceptionUnauthorizedAccessExceptionPathTooLongExceptionpublic Semaphore(int initialCount,
int maximumCount,
java.lang.String name)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
FormatException,
WaitHandleCannotBeOpenedException,
IOException,
UnauthorizedAccessException,
PathTooLongException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionWaitHandleCannotBeOpenedExceptionIOExceptionUnauthorizedAccessExceptionPathTooLongExceptionpublic Semaphore(int initialCount,
int maximumCount,
java.lang.String name,
boolean createdNew)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
WaitHandleCannotBeOpenedException,
IOException,
UnauthorizedAccessException,
PathTooLongException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionWaitHandleCannotBeOpenedExceptionIOExceptionUnauthorizedAccessExceptionPathTooLongExceptionpublic Semaphore(int initialCount,
int maximumCount,
java.lang.String name,
boolean createdNew,
SemaphoreSecurity semaphoreSecurity)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
FormatException,
WaitHandleCannotBeOpenedException,
IOException,
UnauthorizedAccessException,
PathTooLongException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionWaitHandleCannotBeOpenedExceptionIOExceptionUnauthorizedAccessExceptionPathTooLongExceptionpublic Semaphore(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Semaphore cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Semaphore, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSemaphore instancejava.lang.Throwable - in case of error during cast operationpublic SemaphoreSecurity GetAccessControl() throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, UnauthorizedAccessException, PrivilegeNotHeldException, SystemException, OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionSystemExceptionOverflowExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class WaitHandleString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class WaitHandleString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class WaitHandleObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class WaitHandleString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class WaitHandleJCType representing the CLR Type of the instantiated Classpublic static Semaphore OpenExisting(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, UnauthorizedAccessException, PathTooLongException, WaitHandleCannotBeOpenedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionUnauthorizedAccessExceptionPathTooLongExceptionWaitHandleCannotBeOpenedExceptionpublic static Semaphore OpenExisting(java.lang.String name, SemaphoreRights rights) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, IOException, UnauthorizedAccessException, PathTooLongException, WaitHandleCannotBeOpenedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionIOExceptionUnauthorizedAccessExceptionPathTooLongExceptionWaitHandleCannotBeOpenedExceptionpublic int Release()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
SemaphoreFullException
public int Release(int releaseCount)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
SemaphoreFullException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionSemaphoreFullExceptionpublic void SetAccessControl(SemaphoreSecurity semaphoreSecurity) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, OutOfMemoryException, UnauthorizedAccessException, PrivilegeNotHeldException, InvalidProgramException
public void setJCOInstance(JCObject instance)
setJCOInstance in class WaitHandlepublic static boolean TryOpenExisting(java.lang.String name,
JCORefOut<Semaphore> result)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
IOException,
UnauthorizedAccessException,
PathTooLongException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionIOExceptionUnauthorizedAccessExceptionPathTooLongExceptionpublic static boolean TryOpenExisting(java.lang.String name,
SemaphoreRights rights,
JCORefOut<Semaphore> result)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
IOException,
UnauthorizedAccessException,
PathTooLongException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionIOExceptionUnauthorizedAccessExceptionPathTooLongException