com.microsoft.tfs.core.clients.versioncontrol.localworkspace
Class LocalMetadataTableLock

java.lang.Object
  extended by com.microsoft.tfs.core.clients.versioncontrol.localworkspace.LocalMetadataTableLock

public class LocalMetadataTableLock
extends java.lang.Object

Thread-safety:
unknown

Nested Class Summary
 class LocalMetadataTableLock.LocalMetadataTableTimeoutException
           
 
Constructor Summary
LocalMetadataTableLock(java.lang.String filename)
           
LocalMetadataTableLock(java.lang.String fileName, boolean requestYield)
           
LocalMetadataTableLock(java.lang.String filename, int retryCount, boolean requestYield)
           
 
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
 

Constructor Detail

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)
Method Detail

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.