com.starteam.util
Class ReadWriteLock

java.lang.Object
  extended by com.starteam.util.ReadWriteLock

public class ReadWriteLock
extends java.lang.Object

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

ReadWriteLock

public ReadWriteLock()
Construct a ReadWrite Lock

Method Detail

acquireReadLock

public boolean acquireReadLock(int waitTime)
Try to acquire a read lock, wait for the specified time in seconds

Parameters:
waitTime - the waitTime in seconds

acquireReadLock

public void acquireReadLock()
Acquire a read lock, wait indefinitely


releaseReadLock

public void releaseReadLock()
Release the read lock


acquireWriteLock

public boolean acquireWriteLock(int waitTime)
Try to acquire a write lock, wait for the specified time in seconds

Parameters:
waitTime - the waitTime in seconds

acquireWriteLock

public void acquireWriteLock()
Acquire a write lock, wait indefinitely


releaseWriteLock

public void releaseWriteLock()
Release the write lock



StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.