public interface DistributedTransactionManager
Modifier and Type | Method and Description |
---|---|
TransactionState |
abort(java.lang.String txId)
Aborts a given transaction.
|
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
|
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.
|
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 start() throws TransactionException
DistributedTransaction
TransactionException
- if starting the transaction failedDistributedTransaction start(java.lang.String txId) throws TransactionException
txId
- an user-provided unique transaction IDDistributedTransaction
TransactionException
- if starting the transaction failed@Deprecated DistributedTransaction start(Isolation isolation) throws TransactionException
Isolation
level.isolation
- an isolation levelDistributedTransaction
TransactionException
- if starting the transaction failed@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 levelDistributedTransaction
TransactionException
- if starting the transaction failed@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 strategyDistributedTransaction
TransactionException
- if starting the transaction failed@Deprecated DistributedTransaction start(SerializableStrategy strategy) throws TransactionException
SerializableStrategy
.strategy
- a serializable strategyDistributedTransaction
TransactionException
- if starting the transaction failed@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 strategyDistributedTransaction
TransactionException
- if starting the transaction failed@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 strategyDistributedTransaction
TransactionException
- if starting the transaction failedTransactionState getState(java.lang.String txId) throws TransactionException
txId
- a transaction IDTransactionState
TransactionException
- if getting the state of a given transaction failedTransactionState abort(java.lang.String txId) throws TransactionException
txId
- a transaction IDTransactionState
TransactionException
- if aborting the given transaction failedvoid close()