public interface ILocalTransactionManager extends IServiceShutdown
ITransactionService
).IServiceShutdown.Options
Modifier and Type | Method and Description |
---|---|
ITxState[] |
getActiveTx()
Return a snapshot of the active transactions.
|
ITransactionService |
getTransactionService()
The server side of the transaction manager (possibly remote, in which
case this may require the service to be discovered).
|
ITx |
getTx(long tx)
Return the local state for a transaction.
|
long |
nextTimestamp()
Return the next timestamp from the
ITransactionService . |
void |
notifyCommit(long commitTime)
Notify the global transaction manager that a commit has been performed
with the given timestamp (which it assigned) and that it should update
its lastCommitTime iff the given commitTime is GT its current
lastCommitTime.
|
isOpen, shutdown, shutdownNow
ITransactionService getTransactionService()
ITx getTx(long tx)
tx
- The transaction identifier.null
if the start time is not mapped to either an
active or prepared transaction.long nextTimestamp()
ITransactionService
.
Note: This method is "robust" and will "retry"
ITimestampService.nextTimestamp()
several times before giving
up.
ITransactionService
.RuntimeException
- if the service can not be resolved or the timestamp can not
be obtained.ITimestampService.nextTimestamp()
void notifyCommit(long commitTime)
commitTime
- The commit time.ITransactionService.notifyCommit(long)
ITxState[] getActiveTx()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.