|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.core.ObjectLockManager
public class ObjectLockManager
This class maintains a set of objects that can be exclusively locked. There are two methods: lock and unlock. The call to "lock(o)" doesn't return until an exclusive lock is set on object o; the call to "unlock(o)" releases the lock on o.
| Constructor Summary | |
|---|---|
ObjectLockManager()
Creates a new ObjectLockManager. |
|
| Method Summary | |
|---|---|
void |
lock(Object o)
Sets an exclusive lock on the specified object. |
void |
unlock(Object o)
Releases the lock on the specified object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectLockManager()
ObjectLockManager.
| Method Detail |
|---|
public void lock(Object o)
o - - the object on which to set a lockpublic void unlock(Object o)
o - - the object whose lock should be released
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||