Package com.illumon.util.locks
Class FunctionalReentrantLock
java.lang.Object
java.util.concurrent.locks.ReentrantLock
com.illumon.util.locks.FunctionalReentrantLock
- All Implemented Interfaces:
FunctionalLock
,Serializable
,Lock
public class FunctionalReentrantLock extends ReentrantLock implements FunctionalLock
ReentrantLock
that adds the FunctionalLock
default features.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FunctionalReentrantLock()
FunctionalReentrantLock(boolean fair)
-
Method Summary
Methods inherited from class java.util.concurrent.locks.ReentrantLock
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.util.locks.FunctionalLock
computeLocked, computeLockedInterruptibly, doLocked, doLockedInterruptibly, testLocked
Methods inherited from interface java.util.concurrent.locks.Lock
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
-
Constructor Details
-
FunctionalReentrantLock
public FunctionalReentrantLock() -
FunctionalReentrantLock
public FunctionalReentrantLock(boolean fair)
-