|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.util.AWRecursiveLock
public final class AWRecursiveLock
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 |
---|
public AWRecursiveLock()
Method Detail |
---|
public void lock()
public void unlock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |