public static final class TxnStoreMutex.LockHandleImpl extends Object implements TxnStore.MutexAPI.LockHandle
| Constructor and Description |
|---|
LockHandleImpl(MultiDataSourceJdbcResource jdbcResource,
TransactionContext context,
String key,
Long lastUpdateTime,
Semaphore derbySemaphore) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Long |
getLastUpdateTime()
Returns the value of the last update time persisted during the appropriate lock release call.
|
void |
releaseLocks()
Releases all locks associated with this handle.
|
void |
releaseLocks(Long timestamp)
Releases all locks associated with this handle, and persist the value of the last update time.
|
public LockHandleImpl(MultiDataSourceJdbcResource jdbcResource, TransactionContext context, String key, Long lastUpdateTime, Semaphore derbySemaphore)
public void releaseLocks()
TxnStore.MutexAPI.LockHandlereleaseLocks in interface TxnStore.MutexAPI.LockHandlepublic Long getLastUpdateTime()
TxnStore.MutexAPI.LockHandlegetLastUpdateTime in interface TxnStore.MutexAPI.LockHandlepublic void releaseLocks(Long timestamp)
TxnStore.MutexAPI.LockHandlereleaseLocks in interface TxnStore.MutexAPI.LockHandlepublic void close()
close in interface AutoCloseableCopyright © 2024 The Apache Software Foundation. All rights reserved.