public class ReentrantPerEntryLockContainer extends AbstractPerEntryLockContainer<VisibleOwnerRefCountingReentrantLock>
locks| Constructor and Description |
|---|
ReentrantPerEntryLockContainer(int concurrencyLevel) |
| Modifier and Type | Method and Description |
|---|---|
protected Log |
getLog() |
boolean |
isLocked(Object key) |
protected void |
lock(VisibleOwnerRefCountingReentrantLock lock,
Object lockOwner) |
protected VisibleOwnerRefCountingReentrantLock |
newLock() |
boolean |
ownsLock(Object key,
Object ignored)
Tests if a give owner owns a lock on a specified object.
|
protected boolean |
tryLock(VisibleOwnerRefCountingReentrantLock lock,
long timeout,
TimeUnit unit,
Object unused) |
protected void |
unlock(VisibleOwnerRefCountingReentrantLock l,
Object unused) |
acquireLock, getLock, getLockId, getNumLocksHeld, releaseLock, size, toStringsafeReleasepublic ReentrantPerEntryLockContainer(int concurrencyLevel)
protected Log getLog()
getLog in class AbstractLockContainer<VisibleOwnerRefCountingReentrantLock>protected VisibleOwnerRefCountingReentrantLock newLock()
newLock in class AbstractPerEntryLockContainer<VisibleOwnerRefCountingReentrantLock>public boolean ownsLock(Object key, Object ignored)
LockContainerkey - object to checkignored - owner to testpublic boolean isLocked(Object key)
key - objectprotected void unlock(VisibleOwnerRefCountingReentrantLock l, Object unused)
unlock in class AbstractLockContainer<VisibleOwnerRefCountingReentrantLock>protected boolean tryLock(VisibleOwnerRefCountingReentrantLock lock, long timeout, TimeUnit unit, Object unused) throws InterruptedException
tryLock in class AbstractLockContainer<VisibleOwnerRefCountingReentrantLock>InterruptedExceptionprotected void lock(VisibleOwnerRefCountingReentrantLock lock, Object lockOwner)
lock in class AbstractLockContainer<VisibleOwnerRefCountingReentrantLock>Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.