|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.locking.AbstractLockManager
me.prettyprint.cassandra.locking.HLockManagerImpl
public class HLockManagerImpl
Wait Chain implementation created by Dominic Williams, reviewed by Aaron Morton and Patricio Echague.
| Field Summary |
|---|
| Fields inherited from class me.prettyprint.cassandra.locking.AbstractLockManager |
|---|
cluster, DUMMY_VALUE, keyspace, lockManagerConfigurator |
| Constructor Summary | |
|---|---|
HLockManagerImpl(Cluster cluster,
HLockManagerConfigurator hlc)
|
|
| Method Summary | |
|---|---|
void |
acquire(HLock lock)
Acquires a lock represented by lock.getPath and filling up the lockId with a unique client/caller lock id. |
void |
acquire(HLock lock,
long timeout)
Acquires a lock represented by lock.getPath and filling up the lockId with a unique client/caller lock id. |
HLock |
createLock(String lockPath)
Creates a lock instance to use later on acquire(HLock) |
void |
release(HLock lock)
Releases the lock |
void |
shutdownScheduler()
Here for testing purposes only, this should never really be invoked |
| Methods inherited from class me.prettyprint.cassandra.locking.AbstractLockManager |
|---|
getCluster, getKeyspace, getLockManagerConfigurator, init, setCluster, setKeyspace, setLockManagerConfigurator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HLockManagerImpl(Cluster cluster,
HLockManagerConfigurator hlc)
| Method Detail |
|---|
public void acquire(HLock lock)
HLockManager
lock - a lock object with path identifying the lock path to lock on
public void acquire(HLock lock,
long timeout)
lock - a lock object with path identifying the lock path to lock ontimeout - The time to wait for acquiring a lock in millisecondspublic void shutdownScheduler()
public void release(HLock lock)
HLockManager
lock - a lock to releasepublic HLock createLock(String lockPath)
HLockManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||