com.microsoft.tfs.core.clients.versioncontrol.localworkspace
Class LocalMetadataTableLock
java.lang.Object
com.microsoft.tfs.core.clients.versioncontrol.localworkspace.LocalMetadataTableLock
public class LocalMetadataTableLock
- extends java.lang.Object
- Thread-safety:
- unknown
Method Summary |
void |
close()
|
boolean |
isYieldRequested()
Returns true if another thread in the system is currently holding the
yield request lock for this LocalMetadataTableLock, indicating that we
should yield if we have the opportunity. |
void |
yield()
Releases and re-acquires the LocalMetadataTableLock. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalMetadataTableLock
public LocalMetadataTableLock(java.lang.String filename)
LocalMetadataTableLock
public LocalMetadataTableLock(java.lang.String fileName,
boolean requestYield)
LocalMetadataTableLock
public LocalMetadataTableLock(java.lang.String filename,
int retryCount,
boolean requestYield)
close
public void close()
isYieldRequested
public boolean isYieldRequested()
- Returns true if another thread in the system is currently holding the
yield request lock for this LocalMetadataTableLock, indicating that we
should yield if we have the opportunity.
yield
public void yield()
- Releases and re-acquires the LocalMetadataTableLock. When the method
returns, the lock has been re-acquired.
© 2015 Microsoft. All rights reserved.