public abstract class ActiveTransactionManagedDistributedTransactionManager extends TransactionDecorationDistributedTransactionManager
| Constructor and Description |
|---|
ActiveTransactionManagedDistributedTransactionManager(DatabaseConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected DistributedTransaction |
decorate(DistributedTransaction transaction) |
DistributedTransaction |
resume(java.lang.String txId)
Resumes an ongoing transaction associated with the specified transaction ID.
|
void |
setTransactionExpirationHandler(java.util.function.BiConsumer<java.lang.String,DistributedTransaction> handler) |
addTransactionDecoratorcopyAndSetTargetToIfNot, copyAndSetTargetToIfNot, copyAndSetTargetToIfNot, copyAndSetTargetToIfNot, copyAndSetTargetToIfNot, copyAndSetTargetToIfNot, copyAndSetTargetToIfNot, copyAndSetTargetToIfNot, getNamespace, getTable, with, withNamespace, withTableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ActiveTransactionManagedDistributedTransactionManager(DatabaseConfig config)
public void setTransactionExpirationHandler(java.util.function.BiConsumer<java.lang.String,DistributedTransaction> handler)
public DistributedTransaction resume(java.lang.String txId) throws TransactionNotFoundException
DistributedTransactionManagertxId - the transaction IDDistributedTransactionTransactionNotFoundException - if the transaction associated with the specified
transaction ID is not found. You can retry the transaction from the beginningprotected DistributedTransaction decorate(DistributedTransaction transaction) throws TransactionException
decorate in class TransactionDecorationDistributedTransactionManagerTransactionException