|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.locking.HLockImpl
public class HLockImpl
Default Lock implementation of HLock
| Constructor Summary | |
|---|---|
HLockImpl(String lockPath,
String lockId)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HLockImpl(String lockPath,
String lockId)
| Method Detail |
|---|
public String getPath()
getPath in interface HLockpublic void setPath(String lockPath)
HLock
setPath in interface HLocklockPath - the lock path i.e.: /Users/patricioe or
"aLockPathAllClientsWillAgreeOn"public String getLockId()
getLockId in interface HLockpublic void setLockId(String lockId)
HLock
setLockId in interface HLocklockId - unique lock id that identifies uniquely a client. This is for
internal usage only. Users don't and should not call this setter.public boolean isAcquired()
isAcquired in interface HLockpublic void setAcquired(boolean acquired)
public void setObserver(HLockObserver observer)
HLock
setObserver in interface HLockpublic HLockObserver getObserver()
HLock
getObserver in interface HLockpublic Future<Void> getHeartbeat()
public void setHeartbeat(Future<Void> heartbeat)
heartbeat - the heartbeat to setpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||