| Constructor and Description |
|---|
HLockImpl(String lockPath,
String lockId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Future<Void> |
getHeartbeat() |
String |
getLockId() |
HLockObserver |
getObserver()
Get the observer for this lock
|
String |
getPath() |
int |
hashCode() |
boolean |
isAcquired() |
void |
setAcquired(boolean acquired) |
void |
setHeartbeat(Future<Void> heartbeat) |
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 |
toString() |
public String getPath()
public void setPath(String lockPath)
HLockpublic String getLockId()
public void setLockId(String lockId)
HLockpublic boolean isAcquired()
isAcquired in interface HLockpublic void setAcquired(boolean acquired)
public void setObserver(HLockObserver observer)
HLocksetObserver in interface HLockpublic HLockObserver getObserver()
HLockgetObserver in interface HLockpublic void setHeartbeat(Future<Void> heartbeat)
heartbeat - the heartbeat to setCopyright © 2014. All Rights Reserved.