|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.util.Lock
public class Lock
Provides Lock functionality
Constructor Summary | |
---|---|
Lock()
|
Method Summary | |
---|---|
boolean |
canI(java.lang.Object key)
Check to see if we can lock on a given object. |
boolean |
isLocked(java.lang.Object key)
Check to see if the object is locked |
boolean |
lock(java.lang.Object key)
Lock on a given object. |
boolean |
unlock(java.lang.Object key)
Release the lock on a given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Lock()
Method Detail |
---|
public boolean isLocked(java.lang.Object key)
key
- the Object on which to check the lock
public boolean canI(java.lang.Object key)
key
- the Object on which to lock
public boolean lock(java.lang.Object key)
key
- the Object on which to lock
public boolean unlock(java.lang.Object key)
key
- the Object on which the lock is held
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |