RingJavafor Ring

java.util.concurrent.locks

14 classes of the module java.base.

Load them with:

using {
	"java.util.concurrent.locks"
}

All packages

AbstractOwnableSynchronizer#

abstract · extends Object · java.util.concurrent.locks.AbstractOwnableSynchronizer

Implements: Serializable

The methods and fields of Object are inherited.

AbstractQueuedLongSynchronizer#

abstract · extends AbstractOwnableSynchronizer · java.util.concurrent.locks.AbstractQueuedLongSynchronizer

Implements: Serializable

Methods

MethodRing callJava overloads
acquireacquire(arg)void acquire(long arg)
acquireInterruptiblyacquireInterruptibly(arg)void acquireInterruptibly(long arg)
acquireSharedacquireShared(arg)void acquireShared(long arg)
acquireSharedInterruptiblyacquireSharedInterruptibly(arg)void acquireSharedInterruptibly(long arg)
getExclusiveQueuedThreadsgetExclusiveQueuedThreads()Collection getExclusiveQueuedThreads()
getFirstQueuedThreadgetFirstQueuedThread()Thread getFirstQueuedThread()
getQueuedThreadsgetQueuedThreads()Collection getQueuedThreads()
getQueueLengthgetQueueLength()int getQueueLength()
getSharedQueuedThreadsgetSharedQueuedThreads()Collection getSharedQueuedThreads()
getWaitingThreadsgetWaitingThreads(condition)Collection getWaitingThreads(ConditionObject condition)
getWaitQueueLengthgetWaitQueueLength(condition)int getWaitQueueLength(ConditionObject condition)
hasContendedhasContended()boolean hasContended()
hasQueuedPredecessorshasQueuedPredecessors()boolean hasQueuedPredecessors()
hasQueuedThreadshasQueuedThreads()boolean hasQueuedThreads()
hasWaitershasWaiters(condition)boolean hasWaiters(ConditionObject condition)
isQueuedisQueued(thread)boolean isQueued(Thread thread)
ownsowns(condition)boolean owns(ConditionObject condition)
releaserelease(arg)boolean release(long arg)
releaseSharedreleaseShared(arg)boolean releaseShared(long arg)
tryAcquireNanostryAcquireNanos(arg,nanosTimeout)boolean tryAcquireNanos(long arg, long nanosTimeout)
tryAcquireSharedNanostryAcquireSharedNanos(arg,nanosTimeout)boolean tryAcquireSharedNanos(long arg, long nanosTimeout)

The methods and fields of AbstractOwnableSynchronizer are inherited.

AbstractQueuedLongSynchronizerConditionObject#

class · extends Object · java.util.concurrent.locks.AbstractQueuedLongSynchronizer$ConditionObject

Implements: Condition, Serializable

Constructors

new AbstractQueuedLongSynchronizerConditionObject(AbstractQueuedLongSynchronizer p1)

Ring: new AbstractQueuedLongSynchronizerConditionObject(args) uses the constructor with the fewest parameters (at least one); new AbstractQueuedLongSynchronizerConditionObject makes the object with the constructor without parameters; the others: (new AbstractQueuedLongSynchronizerConditionObject).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@await@await([time,unit])
@await([ :time = v, :unit = v ])
boolean await(long time, TimeUnit unit)
awaitawait()void await()
awaitNanosawaitNanos(nanosTimeout)long awaitNanos(long nanosTimeout)
awaitUninterruptiblyawaitUninterruptibly()void awaitUninterruptibly()
awaitUntilawaitUntil(deadline)boolean awaitUntil(Date deadline)
signalsignal()void signal()
signalAllsignalAll()void signalAll()

The methods and fields of Object are inherited.

AbstractQueuedSynchronizer#

abstract · extends AbstractOwnableSynchronizer · java.util.concurrent.locks.AbstractQueuedSynchronizer

Implements: Serializable

Methods

MethodRing callJava overloads
acquireacquire(arg)void acquire(int arg)
acquireInterruptiblyacquireInterruptibly(arg)void acquireInterruptibly(int arg)
acquireSharedacquireShared(arg)void acquireShared(int arg)
acquireSharedInterruptiblyacquireSharedInterruptibly(arg)void acquireSharedInterruptibly(int arg)
getExclusiveQueuedThreadsgetExclusiveQueuedThreads()Collection getExclusiveQueuedThreads()
getFirstQueuedThreadgetFirstQueuedThread()Thread getFirstQueuedThread()
getQueuedThreadsgetQueuedThreads()Collection getQueuedThreads()
getQueueLengthgetQueueLength()int getQueueLength()
getSharedQueuedThreadsgetSharedQueuedThreads()Collection getSharedQueuedThreads()
getWaitingThreadsgetWaitingThreads(condition)Collection getWaitingThreads(ConditionObject condition)
getWaitQueueLengthgetWaitQueueLength(condition)int getWaitQueueLength(ConditionObject condition)
hasContendedhasContended()boolean hasContended()
hasQueuedPredecessorshasQueuedPredecessors()boolean hasQueuedPredecessors()
hasQueuedThreadshasQueuedThreads()boolean hasQueuedThreads()
hasWaitershasWaiters(condition)boolean hasWaiters(ConditionObject condition)
isQueuedisQueued(thread)boolean isQueued(Thread thread)
ownsowns(condition)boolean owns(ConditionObject condition)
releaserelease(arg)boolean release(int arg)
releaseSharedreleaseShared(arg)boolean releaseShared(int arg)
tryAcquireNanostryAcquireNanos(arg,nanosTimeout)boolean tryAcquireNanos(int arg, long nanosTimeout)
tryAcquireSharedNanostryAcquireSharedNanos(arg,nanosTimeout)boolean tryAcquireSharedNanos(int arg, long nanosTimeout)

The methods and fields of AbstractOwnableSynchronizer are inherited.

AbstractQueuedSynchronizerConditionObject#

class · extends Object · java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject

Implements: Condition, Serializable

Constructors

new AbstractQueuedSynchronizerConditionObject(AbstractQueuedSynchronizer p1)

Ring: new AbstractQueuedSynchronizerConditionObject(args) uses the constructor with the fewest parameters (at least one); new AbstractQueuedSynchronizerConditionObject makes the object with the constructor without parameters; the others: (new AbstractQueuedSynchronizerConditionObject).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@await@await([time,unit])
@await([ :time = v, :unit = v ])
boolean await(long time, TimeUnit unit)
awaitawait()void await()
awaitNanosawaitNanos(nanosTimeout)long awaitNanos(long nanosTimeout)
awaitUninterruptiblyawaitUninterruptibly()void awaitUninterruptibly()
awaitUntilawaitUntil(deadline)boolean awaitUntil(Date deadline)
signalsignal()void signal()
signalAllsignalAll()void signalAll()

The methods and fields of Object are inherited.

Condition#

interface · java.util.concurrent.locks.Condition

Methods

MethodRing callJava overloads
@await@await([time,unit])
@await([ :time = v, :unit = v ])
boolean await(long time, TimeUnit unit)
awaitawait()void await()
awaitNanosawaitNanos(nanosTimeout)long awaitNanos(long nanosTimeout)
awaitUninterruptiblyawaitUninterruptibly()void awaitUninterruptibly()
awaitUntilawaitUntil(deadline)boolean awaitUntil(Date deadline)
signalsignal()void signal()
signalAllsignalAll()void signalAll()

Lock#

interface · java.util.concurrent.locks.Lock

Methods

MethodRing callJava overloads
@tryLock@tryLock([time,unit])
@tryLock([ :time = v, :unit = v ])
boolean tryLock(long time, TimeUnit unit)
locklock()void lock()
lockInterruptiblylockInterruptibly()void lockInterruptibly()
newConditionnewCondition()Condition newCondition()
tryLocktryLock()boolean tryLock()
unlockunlock()void unlock()

LockSupport#

class final · extends Object · java.util.concurrent.locks.LockSupport

Methods

MethodRing callJava overloads
@park@park(blocker)static void park(Object blocker)
getBlockergetBlocker(t)static Object getBlocker(Thread t)
parkpark()static void park()
parkNanosparkNanos(nanos)
parkNanos([blocker,nanos])
parkNanos([ :blocker = v, :nanos = v ])
static void parkNanos(long nanos)
static void parkNanos(Object blocker, long nanos)
parkUntilparkUntil(deadline)
parkUntil([blocker,deadline])
parkUntil([ :blocker = v, :deadline = v ])
static void parkUntil(long deadline)
static void parkUntil(Object blocker, long deadline)
setCurrentBlockersetCurrentBlocker(blocker)static void setCurrentBlocker(Object blocker)
unparkunpark(thread)static void unpark(Thread thread)

The methods and fields of Object are inherited.

ReadWriteLock#

interface · java.util.concurrent.locks.ReadWriteLock

Methods

MethodRing callJava overloads
readLockreadLock()Lock readLock()
writeLockwriteLock()Lock writeLock()

ReentrantLock#

class · extends Object · java.util.concurrent.locks.ReentrantLock

Implements: Lock, Serializable

Constructors

new ReentrantLock()
new ReentrantLock(boolean fair)

Ring: new ReentrantLock(args) uses the constructor with the fewest parameters (at least one); new ReentrantLock makes the object with the constructor without parameters; the others: (new ReentrantLock).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@tryLock@tryLock([timeout,unit])
@tryLock([ :timeout = v, :unit = v ])
boolean tryLock(long timeout, TimeUnit unit)
getHoldCountgetHoldCount()int getHoldCount()
getQueueLengthgetQueueLength()int getQueueLength()
getWaitQueueLengthgetWaitQueueLength(condition)int getWaitQueueLength(Condition condition)
hasQueuedThreadhasQueuedThread(thread)boolean hasQueuedThread(Thread thread)
hasQueuedThreadshasQueuedThreads()boolean hasQueuedThreads()
hasWaitershasWaiters(condition)boolean hasWaiters(Condition condition)
isFairisFair()boolean isFair()
isHeldByCurrentThreadisHeldByCurrentThread()boolean isHeldByCurrentThread()
isLockedisLocked()boolean isLocked()
locklock()void lock()
lockInterruptiblylockInterruptibly()void lockInterruptibly()
newConditionnewCondition()Condition newCondition()
tryLocktryLock()boolean tryLock()
unlockunlock()void unlock()

The methods and fields of Object are inherited.

ReentrantReadWriteLock#

class · extends Object · java.util.concurrent.locks.ReentrantReadWriteLock

Implements: ReadWriteLock, Serializable

Constructors

new ReentrantReadWriteLock()
new ReentrantReadWriteLock(boolean fair)

Ring: new ReentrantReadWriteLock(args) uses the constructor with the fewest parameters (at least one); new ReentrantReadWriteLock makes the object with the constructor without parameters; the others: (new ReentrantReadWriteLock).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getQueueLengthgetQueueLength()int getQueueLength()
getReadHoldCountgetReadHoldCount()int getReadHoldCount()
getReadLockCountgetReadLockCount()int getReadLockCount()
getWaitQueueLengthgetWaitQueueLength(condition)int getWaitQueueLength(Condition condition)
getWriteHoldCountgetWriteHoldCount()int getWriteHoldCount()
hasQueuedThreadhasQueuedThread(thread)boolean hasQueuedThread(Thread thread)
hasQueuedThreadshasQueuedThreads()boolean hasQueuedThreads()
hasWaitershasWaiters(condition)boolean hasWaiters(Condition condition)
isFairisFair()boolean isFair()
isWriteLockedisWriteLocked()boolean isWriteLocked()
isWriteLockedByCurrentThreadisWriteLockedByCurrentThread()boolean isWriteLockedByCurrentThread()
readLockreadLock()ReadLock readLock()
writeLockwriteLock()WriteLock writeLock()

The methods and fields of Object are inherited.

ReentrantReadWriteLockReadLock#

class · extends Object · java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock

Implements: Lock, Serializable

Methods

MethodRing callJava overloads
@tryLock@tryLock([timeout,unit])
@tryLock([ :timeout = v, :unit = v ])
boolean tryLock(long timeout, TimeUnit unit)
locklock()void lock()
lockInterruptiblylockInterruptibly()void lockInterruptibly()
newConditionnewCondition()Condition newCondition()
tryLocktryLock()boolean tryLock()
unlockunlock()void unlock()

The methods and fields of Object are inherited.

ReentrantReadWriteLockWriteLock#

class · extends Object · java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock

Implements: Lock, Serializable

Methods

MethodRing callJava overloads
@tryLock@tryLock([timeout,unit])
@tryLock([ :timeout = v, :unit = v ])
boolean tryLock(long timeout, TimeUnit unit)
getHoldCountgetHoldCount()int getHoldCount()
isHeldByCurrentThreadisHeldByCurrentThread()boolean isHeldByCurrentThread()
locklock()void lock()
lockInterruptiblylockInterruptibly()void lockInterruptibly()
newConditionnewCondition()Condition newCondition()
tryLocktryLock()boolean tryLock()
unlockunlock()void unlock()

The methods and fields of Object are inherited.

StampedLock#

class · extends Object · java.util.concurrent.locks.StampedLock

Implements: Serializable

Constructors

new StampedLock()

Ring: new StampedLock(args) uses the constructor with the fewest parameters (at least one); new StampedLock makes the object with the constructor without parameters; the others: (new StampedLock).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@tryReadLock@tryReadLock([time,unit])
@tryReadLock([ :time = v, :unit = v ])
long tryReadLock(long time, TimeUnit unit)
@tryWriteLock@tryWriteLock([time,unit])
@tryWriteLock([ :time = v, :unit = v ])
long tryWriteLock(long time, TimeUnit unit)
asReadLockasReadLock()Lock asReadLock()
asReadWriteLockasReadWriteLock()ReadWriteLock asReadWriteLock()
asWriteLockasWriteLock()Lock asWriteLock()
getReadLockCountgetReadLockCount()int getReadLockCount()
isLockStampisLockStamp(stamp)static boolean isLockStamp(long stamp)
isOptimisticReadStampisOptimisticReadStamp(stamp)static boolean isOptimisticReadStamp(long stamp)
isReadLockedisReadLocked()boolean isReadLocked()
isReadLockStampisReadLockStamp(stamp)static boolean isReadLockStamp(long stamp)
isWriteLockedisWriteLocked()boolean isWriteLocked()
isWriteLockStampisWriteLockStamp(stamp)static boolean isWriteLockStamp(long stamp)
readLockreadLock()long readLock()
readLockInterruptiblyreadLockInterruptibly()long readLockInterruptibly()
tryConvertToOptimisticReadtryConvertToOptimisticRead(stamp)long tryConvertToOptimisticRead(long stamp)
tryConvertToReadLocktryConvertToReadLock(stamp)long tryConvertToReadLock(long stamp)
tryConvertToWriteLocktryConvertToWriteLock(stamp)long tryConvertToWriteLock(long stamp)
tryOptimisticReadtryOptimisticRead()long tryOptimisticRead()
tryReadLocktryReadLock()long tryReadLock()
tryUnlockReadtryUnlockRead()boolean tryUnlockRead()
tryUnlockWritetryUnlockWrite()boolean tryUnlockWrite()
tryWriteLocktryWriteLock()long tryWriteLock()
unlockunlock(stamp)void unlock(long stamp)
unlockReadunlockRead(stamp)void unlockRead(long stamp)
unlockWriteunlockWrite(stamp)void unlockWrite(long stamp)
validatevalidate(stamp)boolean validate(long stamp)
writeLockwriteLock()long writeLock()
writeLockInterruptiblywriteLockInterruptibly()long writeLockInterruptibly()

The methods and fields of Object are inherited.

RingJava - use Java classes and methods from Ring programs.