public class PerElementReentrantLockContainer<E> extends PerElementLockContainer<E>
ReentrantLock
slocks
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, size
public PerElementReentrantLockContainer(int concurrencyLevel)
public boolean ownsLock(E object, Object owner)
LockContainer
object
- 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.