public interface HLockManager
| Modifier and Type | Method and Description |
|---|---|
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
|
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 millisecondsHLockTimeoutException - if the waiting time for acquiring a lock has elapsedHectorException - if any other error has occurredvoid acquire(HLock lock)
lock - a lock object with path identifying the lock path to lock onHLockTimeoutException - if the waiting time for acquiring a lock has elapsedHectorException - if any other error has occurredvoid release(HLock lock)
lock - a lock to releaseCopyright © 2014. All Rights Reserved.