public interface HLock
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()
Copyright © 2014. All Rights Reserved.