com.microsoft.tfs.core.persistence
Class LockMode

java.lang.Object
  extended by com.microsoft.tfs.util.TypesafeEnum
      extended by com.microsoft.tfs.core.persistence.LockMode
All Implemented Interfaces:
java.lang.Comparable

public class LockMode
extends com.microsoft.tfs.util.TypesafeEnum

Defines the lock modes used for serialization and deserialization with PersistenceStore.

Since:
TEE-SDK-10.1
Thread-safety:
immutable

Field Summary
static LockMode NO_WAIT
          Attempt to acquire the lock but return immediately if it could not be acquired.
static LockMode NONE
          Do not perform any locking.
static LockMode WAIT_FOREVER
          Wait forever to acquire the lock (or until the thread is interrupted).
 
Method Summary
 
Methods inherited from class com.microsoft.tfs.util.TypesafeEnum
compareTo, equals, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final LockMode NONE
Do not perform any locking. Items are opened for read or write without regard to concurrent access by other processes.


WAIT_FOREVER

public static final LockMode WAIT_FOREVER
Wait forever to acquire the lock (or until the thread is interrupted).


NO_WAIT

public static final LockMode NO_WAIT
Attempt to acquire the lock but return immediately if it could not be acquired.



© 2015 Microsoft. All rights reserved.