public class PerElementReentrantLockContainer<E> extends PerElementLockContainer<E>
ReentrantLockslocks| Constructor and Description |
|---|
PerElementReentrantLockContainer(int concurrencyLevel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocked(E object) |
protected Lock |
newLock() |
boolean |
ownsLock(E object,
Object owner)
Tests if a give owner owns a lock on a specified object.
|
acquireLock, acquireLock, getLock, getNumLocksHeld, releaseLock, reset, sizepublic PerElementReentrantLockContainer(int concurrencyLevel)
public boolean ownsLock(E object, Object owner)
LockContainerobject - object to checkowner - owner to testpublic boolean isLocked(E object)
object - objectprotected final Lock newLock()
newLock in class PerElementLockContainer<E>Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.