ariba.ui.aribaweb.util
Class AWRecursiveLock

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.util.AWRecursiveLock
All Implemented Interfaces:
AWObject

public final class AWRecursiveLock
extends AWBaseObject

AWRecursiveLock allows for blocking access to a block of code to all threads but the first one to grab access. Once a thread locks this lock, it can continue running and lock it as many times as necessary (a count is incremented keeping track of the number of times). Of course, it must balance the number of calls to lock with calls to unlock else a deadlock will occur.


Field Summary
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Constructor Summary
AWRecursiveLock()
           
 
Method Summary
 void lock()
           
 void unlock()
           
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWRecursiveLock

public AWRecursiveLock()
Method Detail

lock

public void lock()

unlock

public void unlock()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.