public class ReadWriteLockSync extends Object
Constructor and Description |
---|
ReadWriteLockSync()
default constructor.
|
ReadWriteLockSync(ReentrantReadWriteLock lock)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ReadWriteLock |
getReadWriteLock()
Gets the
ReadWriteLock backing this sync. |
boolean |
isHeldByCurrentThread(LockType type) |
void |
lock(LockType type) |
boolean |
tryLock(LockType type,
long msec) |
void |
unlock(LockType type) |
public ReadWriteLockSync()
public ReadWriteLockSync(ReentrantReadWriteLock lock)
lock
- public void lock(LockType type)
public boolean tryLock(LockType type, long msec) throws InterruptedException
InterruptedException
public void unlock(LockType type)
public ReadWriteLock getReadWriteLock()
ReadWriteLock
backing this sync.ReadWriteLock
public boolean isHeldByCurrentThread(LockType type)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.