|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HLockManager
Entity responsible for managing locks acquisition.
| 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 string)
Creates a lock instance to use later on acquire(HLock) |
Cluster |
getCluster()
the Cluster this Lock Manager is running on |
Keyspace |
getKeyspace()
|
HLockManagerConfigurator |
getLockManagerConfigurator()
|
void |
init()
Initializes the Lock Manager. |
void |
release(HLock lock)
Releases the lock |
| Method Detail |
|---|
void init()
Cluster getCluster()
Keyspace getKeyspace()
HLockManagerConfigurator getLockManagerConfigurator()
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 milliseconds
HLockTimeoutException - if the waiting time for acquiring a lock has elapsed
HectorException - if any other error has occurredvoid acquire(HLock lock)
lock - a lock object with path identifying the lock path to lock on
HLockTimeoutException - if the waiting time for acquiring a lock has elapsed
HectorException - if any other error has occurredvoid release(HLock lock)
lock - a lock to releaseHLock createLock(String string)
string -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||