Package com.rosetta.util
Class DemandableLock
java.lang.Object
com.rosetta.util.DemandableLock
- Author:
- TomForwood A class where a writer can demand that a reader
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DemandableLock
public DemandableLock()
-
-
Method Details
-
getWriteLock
public void getWriteLock(boolean demand) -
releaseWriteLock
public void releaseWriteLock() -
isDemanded
public boolean isDemanded() -
getReadLock
-