|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.liferay.portal.kernel.concurrent.ReadWriteLockRegistry
public class ReadWriteLockRegistry
View Source
Registry for ReadWriteLock objects with ReadWriteLockKey as
keys. The behavior of acquiring and releasing locks is provided by a ConcurrentHashMap. This class is completely thread safe and ensures that
only one ReadWriteLock exists per key. View Source
ReadWriteLock,
ReadWriteLockKey| Constructor Summary | |
|---|---|
ReadWriteLockRegistry()
|
|
| Method Summary | |
|---|---|
java.util.concurrent.locks.Lock |
acquireLock(ReadWriteLockKey<?> readWriteLockKey)
|
void |
releaseLock(ReadWriteLockKey<?> readWriteLockKey)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadWriteLockRegistry()
| Method Detail |
|---|
public java.util.concurrent.locks.Lock acquireLock(ReadWriteLockKey<?> readWriteLockKey)
public void releaseLock(ReadWriteLockKey<?> readWriteLockKey)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||