|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.util.ReadWriteLock
public class ReadWriteLock
A Multi-Reader Single-Writer locking strategy using java.util.concurrent.ReentrantReadWriteLock Uses an Edge Strategy to support Java & .NET
| Constructor Summary | |
|---|---|
ReadWriteLock()
Construct a ReadWrite Lock |
|
| Method Summary | |
|---|---|
void |
acquireReadLock()
Acquire a read lock, wait indefinitely |
boolean |
acquireReadLock(int waitTime)
Try to acquire a read lock, wait for the specified time in seconds |
void |
acquireWriteLock()
Acquire a write lock, wait indefinitely |
boolean |
acquireWriteLock(int waitTime)
Try to acquire a write lock, wait for the specified time in seconds |
void |
releaseReadLock()
Release the read lock |
void |
releaseWriteLock()
Release the write lock |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadWriteLock()
| Method Detail |
|---|
public boolean acquireReadLock(int waitTime)
waitTime - the waitTime in secondspublic void acquireReadLock()
public void releaseReadLock()
public boolean acquireWriteLock(int waitTime)
waitTime - the waitTime in secondspublic void acquireWriteLock()
public void releaseWriteLock()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||