|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.concurrent.locks.ReentrantLock
org.apache.openjpa.slice.ReentrantSliceLock
public class ReentrantSliceLock
A reentrant lock that lets a child to work with the parent's lock.
Constructor Summary | |
---|---|
ReentrantSliceLock()
|
|
ReentrantSliceLock(boolean fair)
|
Method Summary | |
---|---|
void |
lock()
Locks only for parent thread and let the child use parent's lock. |
void |
unlock()
Unlocks only if parent thread. |
Methods inherited from class java.util.concurrent.locks.ReentrantLock |
---|
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lockInterruptibly, newCondition, toString, tryLock, tryLock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReentrantSliceLock()
public ReentrantSliceLock(boolean fair)
Method Detail |
---|
public void lock()
lock
in interface java.util.concurrent.locks.Lock
lock
in class java.util.concurrent.locks.ReentrantLock
public void unlock()
unlock
in interface java.util.concurrent.locks.Lock
unlock
in class java.util.concurrent.locks.ReentrantLock
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |