Class ReentrantLock
- Namespace
- Java.Util.Concurrent.Locks
- Assembly
- MASES.JNet.dll
public class ReentrantLock : JVMBridgeBase<ReentrantLock>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<ReentrantLock>ReentrantLock
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<ReentrantLock>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<ReentrantLock>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<ReentrantLock>.IsAssignableFrom(IJavaType)JVMBridgeBase<ReentrantLock>.IsAssignableFrom<T>()JVMBridgeBase<ReentrantLock>.Execute<T>(params T[])JVMBridgeBase<ReentrantLock>.DynBridgeClazzJVMBridgeBase<ReentrantLock>.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
ReentrantLock()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public ReentrantLock()
ReentrantLock(bool)
public ReentrantLock(bool arg0)
Parameters
ReentrantLock(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 ReentrantLock(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
HoldCount
public int HoldCount { 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
GetWaitQueueLength(Condition)
public int GetWaitQueueLength(Condition arg0)
Parameters
Returns
HasQueuedThread(Thread)
public bool HasQueuedThread(Thread arg0)
Parameters
Returns
HasQueuedThreads()
public bool HasQueuedThreads()
Returns
HasWaiters(Condition)
public bool HasWaiters(Condition arg0)
Parameters
Returns
IsFair()
public bool IsFair()
Returns
IsHeldByCurrentThread()
public bool IsHeldByCurrentThread()
Returns
IsLocked()
public bool IsLocked()
Returns
Lock()
public void Lock()
LockInterruptibly()
public void LockInterruptibly()
Exceptions
NewCondition()
public Condition NewCondition()
Returns
TryLock()
public bool TryLock()
Returns
TryLock(long, TimeUnit)
public bool TryLock(long arg0, TimeUnit arg1)
Parameters
Returns
Exceptions
Unlock()
public void Unlock()
Operators
implicit operator Serializable(ReentrantLock)
Converter from ReentrantLock to Serializable
public static implicit operator Serializable(ReentrantLock t)
Parameters
Returns
implicit operator Lock(ReentrantLock)
Converter from ReentrantLock to Lock
public static implicit operator Lock(ReentrantLock t)