|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.james.util.Lock
Provides Lock functionality
Constructor Summary | |
Lock()
|
Method Summary | |
boolean |
canI(Object key)
Check to see if we can lock on a given object. |
boolean |
isLocked(Object key)
Check to see if the object is locked |
boolean |
lock(Object key)
Lock on a given object. |
boolean |
unlock(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(Object key)
key
- the Object on which to check the lock
public boolean canI(Object key)
key
- the Object on which to lock
public boolean lock(Object key)
key
- the Object on which to lock
public boolean unlock(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 |