public class PerElementOwnableReentrantLockContainer<E> extends PerElementLockContainer<E>
OwnableReentrantLock
slocks
Constructor and Description |
---|
PerElementOwnableReentrantLockContainer(int concurrencyLevel,
InvocationContextContainer icc) |
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 PerElementOwnableReentrantLockContainer(int concurrencyLevel, InvocationContextContainer icc)
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.