public interface DistributedTransactionManager extends TransactionManagerCrudOperable, java.lang.AutoCloseable
| Modifier and Type | Method and Description | 
|---|---|
default TransactionState | 
abort(java.lang.String txId)
Aborts a given transaction. 
 | 
DistributedTransaction | 
begin()
Begins a new transaction. 
 | 
DistributedTransaction | 
begin(java.lang.String txId)
Begins a new transaction with the specified transaction ID. 
 | 
void | 
close()
Closes connections to the cluster. 
 | 
java.util.Optional<java.lang.String> | 
getNamespace()
Deprecated. 
 
As of release 3.6.0. Will be removed in release 5.0.0 
 | 
TransactionState | 
getState(java.lang.String txId)
Returns the state of a given transaction. 
 | 
java.util.Optional<java.lang.String> | 
getTable()
Deprecated. 
 
As of release 3.6.0. Will be removed in release 5.0.0 
 | 
default DistributedTransaction | 
join(java.lang.String txId)
Joins an ongoing transaction associated with the specified transaction ID. 
 | 
DistributedTransaction | 
resume(java.lang.String txId)
Resumes an ongoing transaction associated with the specified transaction ID. 
 | 
TransactionState | 
rollback(java.lang.String txId)
Rolls back a given transaction. 
 | 
default DistributedTransaction | 
start()
Starts a new transaction. 
 | 
DistributedTransaction | 
start(Isolation isolation)
Deprecated. 
 
As of release 2.4.0. Will be removed in release 4.0.0. 
 | 
DistributedTransaction | 
start(Isolation isolation,
     SerializableStrategy strategy)
Deprecated. 
 
As of release 2.4.0. Will be removed in release 4.0.0. 
 | 
DistributedTransaction | 
start(SerializableStrategy strategy)
Deprecated. 
 
As of release 2.4.0. Will be removed in release 4.0.0. 
 | 
default DistributedTransaction | 
start(java.lang.String txId)
Starts a new transaction with the specified transaction ID. 
 | 
DistributedTransaction | 
start(java.lang.String txId,
     Isolation isolation)
Deprecated. 
 
As of release 2.4.0. Will be removed in release 4.0.0. 
 | 
DistributedTransaction | 
start(java.lang.String txId,
     Isolation isolation,
     SerializableStrategy strategy)
Deprecated. 
 
As of release 2.4.0. Will be removed in release 4.0.0. 
 | 
DistributedTransaction | 
start(java.lang.String txId,
     SerializableStrategy strategy)
Deprecated. 
 
As of release 2.4.0. Will be removed in release 4.0.0. 
 | 
void | 
with(java.lang.String namespace,
    java.lang.String tableName)
Deprecated. 
 
As of release 3.6.0. Will be removed in release 5.0.0 
 | 
void | 
withNamespace(java.lang.String namespace)
Deprecated. 
 
As of release 3.6.0. Will be removed in release 5.0.0 
 | 
void | 
withTable(java.lang.String tableName)
Deprecated. 
 
As of release 3.6.0. Will be removed in release 5.0.0 
 | 
@Deprecated
void with(java.lang.String namespace,
                      java.lang.String tableName)
namespace - default namespace to operate fortableName - default table name to operate for@Deprecated void withNamespace(java.lang.String namespace)
namespace - default namespace to operate for@Deprecated java.util.Optional<java.lang.String> getNamespace()
Optional with the namespace@Deprecated void withTable(java.lang.String tableName)
tableName - default table name to operate for@Deprecated java.util.Optional<java.lang.String> getTable()
Optional with the table nameDistributedTransaction begin() throws TransactionNotFoundException, TransactionException
DistributedTransactionTransactionNotFoundException - if the transaction fails to begin due to transient faults.
     You can retry the transactionTransactionException - if the transaction fails to begin due to transient or nontransient
     faults. You can try retrying the transaction, but you may not be able to begin the
     transaction due to nontransient faultsDistributedTransaction begin(java.lang.String txId) throws TransactionNotFoundException, TransactionException
txId - an user-provided unique transaction IDDistributedTransactionTransactionNotFoundException - if the transaction fails to begin due to transient faults.
     You can retry the transactionTransactionException - if the transaction fails to begin due to transient or nontransient
     faults. You can try retrying the transaction, but you may not be able to begin the
     transaction due to nontransient faultsdefault DistributedTransaction start() throws TransactionNotFoundException, TransactionException
begin().DistributedTransactionTransactionNotFoundException - if the transaction fails to start due to transient faults.
     You can retry the transactionTransactionException - if the transaction fails to start due to transient or nontransient
     faults. You can try retrying the transaction, but you may not be able to start the
     transaction due to nontransient faultsdefault DistributedTransaction start(java.lang.String txId) throws TransactionNotFoundException, TransactionException
begin(String).txId - an user-provided unique transaction IDDistributedTransactionTransactionNotFoundException - if the transaction fails to start due to transient faults.
     You can retry the transactionTransactionException - if the transaction fails to start due to transient or nontransient
     faults. You can try retrying the transaction, but you may not be able to start the
     transaction due to nontransient faults@Deprecated DistributedTransaction start(Isolation isolation) throws TransactionException
Isolation level.isolation - an isolation levelDistributedTransactionTransactionException - if starting the transaction fails@Deprecated DistributedTransaction start(java.lang.String txId, Isolation isolation) throws TransactionException
Isolation level. It is
 users' responsibility to guarantee uniqueness of the ID, so it is not recommended to use this
 method unless you know exactly what you are doing.txId - an user-provided unique transaction IDisolation - an isolation levelDistributedTransactionTransactionException - if starting the transaction fails@Deprecated DistributedTransaction start(Isolation isolation, SerializableStrategy strategy) throws TransactionException
Isolation level and SerializableStrategy. If the isolation is not SERIALIZABLE, the serializable strategy is
 ignored.isolation - an isolation levelstrategy - a serializable strategyDistributedTransactionTransactionException - if starting the transaction fails@Deprecated DistributedTransaction start(SerializableStrategy strategy) throws TransactionException
SerializableStrategy.strategy - a serializable strategyDistributedTransactionTransactionException - if starting the transaction fails@Deprecated DistributedTransaction start(java.lang.String txId, SerializableStrategy strategy) throws TransactionException
SerializableStrategy. It is users' responsibility to guarantee uniqueness
 of the ID, so it is not recommended to use this method unless you know exactly what you are
 doing.txId - an user-provided unique transaction IDstrategy - a serializable strategyDistributedTransactionTransactionException - if starting the transaction fails@Deprecated DistributedTransaction start(java.lang.String txId, Isolation isolation, SerializableStrategy strategy) throws TransactionException
Isolation level and SerializableStrategy. It is users' responsibility to guarantee uniqueness of the ID, so it is
 not recommended to use this method unless you know exactly what you are doing. If the isolation
 is not SERIALIZABLE, the serializable strategy is ignored.txId - an user-provided unique transaction IDisolation - an isolation levelstrategy - a serializable strategyDistributedTransactionTransactionException - if starting the transaction failsdefault DistributedTransaction join(java.lang.String txId) throws TransactionNotFoundException
txId - the transaction IDDistributedTransactionTransactionNotFoundException - if the transaction associated with the specified
     transaction ID is not found. You can retry the transaction from the beginningDistributedTransaction resume(java.lang.String txId) throws TransactionNotFoundException
txId - the transaction IDDistributedTransactionTransactionNotFoundException - if the transaction associated with the specified
     transaction ID is not found. You can retry the transaction from the beginningTransactionState getState(java.lang.String txId) throws TransactionException
txId - a transaction IDTransactionStateTransactionException - if getting the state of a given transaction failsTransactionState rollback(java.lang.String txId) throws TransactionException
txId - a transaction IDTransactionStateTransactionException - if rolling back the given transaction failsdefault TransactionState abort(java.lang.String txId) throws TransactionException
rollback(String).txId - a transaction IDTransactionStateTransactionException - if aborting the given transaction failsvoid close()
close in interface java.lang.AutoCloseable