public class LockManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
LockManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(String lockName,
String transactionId)
Acquire a lock of a given name and for a given transaction.
|
protected boolean |
getInternal(String lockName,
String transactionId) |
void |
release(String lockName,
String transactionId)
Releases a previously acquired lock.
|
void |
setConfig(ContextProperties config) |
void |
setGenericDao(GenericDAO genericDao) |
public boolean get(String lockName, String transactionId)
lockName - Name of the locktransactionId - Id of the transactionpublic void release(String lockName, String transactionId)
lockName - The lock nametransactionId - The transaction IDpublic void setGenericDao(GenericDAO genericDao)
public void setConfig(ContextProperties config)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.