|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HLock
A Lock whose path refers to a common path/id clients compete to acquire. Fro example: Lock("/Users/patricioe")
| Method Summary | |
|---|---|
String |
getLockId()
|
HLockObserver |
getObserver()
Get the observer for this lock |
String |
getPath()
|
boolean |
isAcquired()
|
void |
setLockId(String lockId)
Sets the lock id (UID) that identifies uniquely this lock object |
void |
setObserver(HLockObserver observer)
Set the observer to receive events |
void |
setPath(String lockPath)
Sets the lock path for this lock. |
| Method Detail |
|---|
String getPath()
void setPath(String lockPath)
lockPath - the lock path i.e.: /Users/patricioe or
"aLockPathAllClientsWillAgreeOn"String getLockId()
void setLockId(String lockId)
lockId - unique lock id that identifies uniquely a client. This is for
internal usage only. Users don't and should not call this setter.boolean isAcquired()
void setObserver(HLockObserver observer)
observer - HLockObserver getObserver()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||