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
- Exception
boolean acquire(UUID theTxId, long theTime, TimeUnit theTimeUnit) throws Exception
theTxId
- theTime
- theTimeUnit
- Exception
void release(UUID theTxId) throws Exception
theTxId
- Exception
boolean isAcquiredByAny() throws IOException
IOException
boolean isAcquired(UUID theTxId) throws IOException
IOException
Copyright © 2010-2016 Stardog Union. All Rights Reserved.