Table of Contents

Class AbstractQueuedSynchronizer

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

AbstractQueuedSynchronizer()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("AbstractQueuedSynchronizer class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AbstractQueuedSynchronizer()

AbstractQueuedSynchronizer(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

[Obsolete("AbstractQueuedSynchronizer class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AbstractQueuedSynchronizer(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

ExclusiveQueuedThreads

public Collection<Thread> ExclusiveQueuedThreads { get; }

Property Value

Collection<Thread>

FirstQueuedThread

public Thread FirstQueuedThread { get; }

Property Value

Thread

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

QueuedThreads

public Collection<Thread> QueuedThreads { get; }

Property Value

Collection<Thread>

SharedQueuedThreads

public Collection<Thread> SharedQueuedThreads { get; }

Property Value

Collection<Thread>

Methods

Acquire(int)

public void Acquire(int arg0)

Parameters

arg0 int

int

AcquireInterruptibly(int)

public void AcquireInterruptibly(int arg0)

Parameters

arg0 int

int

Exceptions

InterruptedException

AcquireShared(int)

public void AcquireShared(int arg0)

Parameters

arg0 int

int

AcquireSharedInterruptibly(int)

public void AcquireSharedInterruptibly(int arg0)

Parameters

arg0 int

int

Exceptions

InterruptedException

GetWaitQueueLength(ConditionObject)

public int GetWaitQueueLength(AbstractQueuedSynchronizer.ConditionObject arg0)

Parameters

arg0 AbstractQueuedSynchronizer.ConditionObject

AbstractQueuedSynchronizer.ConditionObject

Returns

int

int

GetWaitingThreads(ConditionObject)

public Collection<Thread> GetWaitingThreads(AbstractQueuedSynchronizer.ConditionObject arg0)

Parameters

arg0 AbstractQueuedSynchronizer.ConditionObject

AbstractQueuedSynchronizer.ConditionObject

Returns

Collection<Thread>

Collection

HasContended()

public bool HasContended()

Returns

bool

bool

HasQueuedPredecessors()

public bool HasQueuedPredecessors()

Returns

bool

bool

HasQueuedThreads()

public bool HasQueuedThreads()

Returns

bool

bool

HasWaiters(ConditionObject)

public bool HasWaiters(AbstractQueuedSynchronizer.ConditionObject arg0)

Parameters

arg0 AbstractQueuedSynchronizer.ConditionObject

AbstractQueuedSynchronizer.ConditionObject

Returns

bool

bool

IsQueued(Thread)

public bool IsQueued(Thread arg0)

Parameters

arg0 Thread

Thread

Returns

bool

bool

Owns(ConditionObject)

public bool Owns(AbstractQueuedSynchronizer.ConditionObject arg0)

Parameters

arg0 AbstractQueuedSynchronizer.ConditionObject

AbstractQueuedSynchronizer.ConditionObject

Returns

bool

bool

Release(int)

public bool Release(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

ReleaseShared(int)

public bool ReleaseShared(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

TryAcquireNanos(int, long)

public bool TryAcquireNanos(int arg0, long arg1)

Parameters

arg0 int

int

arg1 long

long

Returns

bool

bool

Exceptions

InterruptedException

TryAcquireSharedNanos(int, long)

public bool TryAcquireSharedNanos(int arg0, long arg1)

Parameters

arg0 int

int

arg1 long

long

Returns

bool

bool

Exceptions

InterruptedException