Table of Contents

Class ReentrantLock

Namespace
Java.Util.Concurrent.Locks
Assembly
MASES.JNet.dll
public class ReentrantLock : JVMBridgeBase<ReentrantLock>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<ReentrantLock>
ReentrantLock
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<ReentrantLock>.IsAssignableFrom(IJavaType)
JVMBridgeBase<ReentrantLock>.IsAssignableFrom<T>()
JVMBridgeBase<ReentrantLock>.Execute<T>(params T[])
JVMBridgeBase<ReentrantLock>.DynBridgeClazz
JVMBridgeBase<ReentrantLock>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

arg0 bool

bool

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

public override string BridgeClassName { get; }

Property Value

string

HoldCount

public int HoldCount { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

QueueLength

public int QueueLength { get; }

Property Value

int

Methods

GetWaitQueueLength(Condition)

public int GetWaitQueueLength(Condition arg0)

Parameters

arg0 Condition

Condition

Returns

int

int

HasQueuedThread(Thread)

public bool HasQueuedThread(Thread arg0)

Parameters

arg0 Thread

Thread

Returns

bool

bool

HasQueuedThreads()

public bool HasQueuedThreads()

Returns

bool

bool

HasWaiters(Condition)

public bool HasWaiters(Condition arg0)

Parameters

arg0 Condition

Condition

Returns

bool

bool

IsFair()

public bool IsFair()

Returns

bool

bool

IsHeldByCurrentThread()

public bool IsHeldByCurrentThread()

Returns

bool

bool

IsLocked()

public bool IsLocked()

Returns

bool

bool

Lock()

public void Lock()

LockInterruptibly()

public void LockInterruptibly()

Exceptions

InterruptedException

NewCondition()

public Condition NewCondition()

Returns

Condition

Condition

TryLock()

public bool TryLock()

Returns

bool

bool

TryLock(long, TimeUnit)

public bool TryLock(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

bool

bool

Exceptions

InterruptedException

Unlock()

public void Unlock()

Operators

implicit operator Serializable(ReentrantLock)

Converter from ReentrantLock to Serializable

public static implicit operator Serializable(ReentrantLock t)

Parameters

t ReentrantLock

Returns

Serializable

implicit operator Lock(ReentrantLock)

Converter from ReentrantLock to Lock

public static implicit operator Lock(ReentrantLock t)

Parameters

t ReentrantLock

Returns

Lock