public interface InterProcessTxLock
InterProcessLock,
but we track the locks with specific transaction ids.| Modifier and Type | Method and Description |
|---|---|
void |
acquire(UUID theTxId)
Tries to acquire a lock for a transaction.
|
boolean |
acquire(UUID theTxId,
long theTime,
TimeUnit theTimeUnit)
Tries to acquire a lock for a transaction.
|
boolean |
isAcquired(UUID theTxId) |
boolean |
isAcquiredByAny() |
void |
release(UUID theTxId)
Release a lock for a transaction.
|
void |
releaseAll()
Release all locks for transactions that have been acquired.
|
void acquire(UUID theTxId) throws Exception
theTxId - Exceptionboolean acquire(UUID theTxId, long theTime, TimeUnit theTimeUnit) throws Exception
theTxId - theTime - theTimeUnit - Exceptionvoid release(UUID theTxId) throws Exception
theTxId - Exceptionboolean isAcquiredByAny()
throws IOException
IOExceptionboolean isAcquired(UUID theTxId) throws IOException
IOExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.