public interface CacheTransactionManager
| Modifier and Type | Method and Description |
|---|---|
org.brandao.brcache.tx.CacheTransactionHandler |
begin(BasicCache cache) |
void |
close(org.brandao.brcache.tx.CacheTransactionHandler tx) |
void |
commit(Serializable transaction) |
org.brandao.brcache.tx.CacheTransactionHandler |
getCurrrent() |
org.brandao.brcache.tx.CacheTransactionHandler |
getCurrrent(boolean required) |
String |
getPath() |
long |
getTimeout() |
void |
lock(Serializable transaction,
String key) |
void |
rollback(Serializable transaction) |
void |
setPath(String value) |
void |
setTimeout(long value) |
void |
tryLock(Serializable transaction,
String key,
long time,
TimeUnit unit) |
void |
unlock(Serializable transaction,
String key) |
void lock(Serializable transaction, String key) throws TransactionException
TransactionExceptionvoid tryLock(Serializable transaction, String key, long time, TimeUnit unit) throws TransactionException
TransactionExceptionvoid unlock(Serializable transaction, String key) throws TransactionException
TransactionExceptionvoid commit(Serializable transaction) throws TransactionException
TransactionExceptionvoid rollback(Serializable transaction) throws TransactionException
TransactionExceptionvoid setPath(String value)
String getPath()
void setTimeout(long value)
long getTimeout()
org.brandao.brcache.tx.CacheTransactionHandler begin(BasicCache cache)
org.brandao.brcache.tx.CacheTransactionHandler getCurrrent()
org.brandao.brcache.tx.CacheTransactionHandler getCurrrent(boolean required)
void close(org.brandao.brcache.tx.CacheTransactionHandler tx)
throws TransactionException
TransactionExceptionCopyright © 2016. All rights reserved.