Table of Contents

Class StampedLock

Namespace
Java.Util.Concurrent.Locks
Assembly
MASES.JNet.dll
public class StampedLock : Serializable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
Inheritance
JVMBridgeBase
JVMBridgeBase<Serializable>
StampedLock
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

StampedLock()

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

public StampedLock()

StampedLock(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 StampedLock(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

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

ReadLockCount

public int ReadLockCount { get; }

Property Value

int

Methods

AsReadLock()

public Lock AsReadLock()

Returns

Lock

Lock

AsReadWriteLock()

public ReadWriteLock AsReadWriteLock()

Returns

ReadWriteLock

ReadWriteLock

AsWriteLock()

public Lock AsWriteLock()

Returns

Lock

Lock

IsLockStamp(long)

public static bool IsLockStamp(long arg0)

Parameters

arg0 long

long

Returns

bool

bool

IsOptimisticReadStamp(long)

public static bool IsOptimisticReadStamp(long arg0)

Parameters

arg0 long

long

Returns

bool

bool

IsReadLockStamp(long)

public static bool IsReadLockStamp(long arg0)

Parameters

arg0 long

long

Returns

bool

bool

IsReadLocked()

public bool IsReadLocked()

Returns

bool

bool

IsWriteLockStamp(long)

public static bool IsWriteLockStamp(long arg0)

Parameters

arg0 long

long

Returns

bool

bool

IsWriteLocked()

public bool IsWriteLocked()

Returns

bool

bool

ReadLock()

public long ReadLock()

Returns

long

long

ReadLockInterruptibly()

public long ReadLockInterruptibly()

Returns

long

long

Exceptions

InterruptedException

TryConvertToOptimisticRead(long)

public long TryConvertToOptimisticRead(long arg0)

Parameters

arg0 long

long

Returns

long

long

TryConvertToReadLock(long)

public long TryConvertToReadLock(long arg0)

Parameters

arg0 long

long

Returns

long

long

TryConvertToWriteLock(long)

public long TryConvertToWriteLock(long arg0)

Parameters

arg0 long

long

Returns

long

long

TryOptimisticRead()

public long TryOptimisticRead()

Returns

long

long

TryReadLock()

public long TryReadLock()

Returns

long

long

TryReadLock(long, TimeUnit)

public long TryReadLock(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

long

long

Exceptions

InterruptedException

TryUnlockRead()

public bool TryUnlockRead()

Returns

bool

bool

TryUnlockWrite()

public bool TryUnlockWrite()

Returns

bool

bool

TryWriteLock()

public long TryWriteLock()

Returns

long

long

TryWriteLock(long, TimeUnit)

public long TryWriteLock(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

long

long

Exceptions

InterruptedException

Unlock(long)

public void Unlock(long arg0)

Parameters

arg0 long

long

UnlockRead(long)

public void UnlockRead(long arg0)

Parameters

arg0 long

long

UnlockWrite(long)

public void UnlockWrite(long arg0)

Parameters

arg0 long

long

Validate(long)

public bool Validate(long arg0)

Parameters

arg0 long

long

Returns

bool

bool

WriteLock()

public long WriteLock()

Returns

long

long

WriteLockInterruptibly()

public long WriteLockInterruptibly()

Returns

long

long

Exceptions

InterruptedException