Class Semaphore
- Namespace
- Java.Util.Concurrent
- Assembly
- MASES.JNet.dll
public class Semaphore : Serializable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Serializable>Semaphore
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Serializable>.IsAssignableFrom(IJavaType)JVMBridgeBase<Serializable>.IsAssignableFrom<T>()JVMBridgeBase<Serializable>.Execute<T>(params T[])JVMBridgeBase<Serializable>.DynBridgeClazzJVMBridgeBase<Serializable>.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
Semaphore()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Semaphore()
Semaphore(int)
public Semaphore(int arg0)
Parameters
Semaphore(int, bool)
public Semaphore(int arg0, bool arg1)
Parameters
Semaphore(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 Semaphore(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
QueueLength
public int QueueLength { get; }
Property Value
Methods
Acquire()
public void Acquire()
Exceptions
Acquire(int)
public void Acquire(int arg0)
Parameters
Exceptions
AcquireUninterruptibly()
public void AcquireUninterruptibly()
AcquireUninterruptibly(int)
public void AcquireUninterruptibly(int arg0)
Parameters
AvailablePermits()
public int AvailablePermits()
Returns
DrainPermits()
public int DrainPermits()
Returns
HasQueuedThreads()
public bool HasQueuedThreads()
Returns
IsFair()
public bool IsFair()
Returns
Release()
public void Release()
Release(int)
public void Release(int arg0)
Parameters
TryAcquire()
public bool TryAcquire()
Returns
TryAcquire(int)
public bool TryAcquire(int arg0)
Parameters
Returns
TryAcquire(int, long, TimeUnit)
public bool TryAcquire(int arg0, long arg1, TimeUnit arg2)
Parameters
Returns
Exceptions
TryAcquire(long, TimeUnit)
public bool TryAcquire(long arg0, TimeUnit arg1)