@Deprecated @ThreadSafe public class TransactionService extends java.lang.Object implements DistributedTransactionManager
Constructor and Description |
---|
TransactionService(DistributedTransactionManager manager)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TransactionState |
abort(java.lang.String txId)
Deprecated.
Aborts a given transaction.
|
void |
close()
Deprecated.
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)
Deprecated.
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()
Deprecated.
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)
Deprecated.
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
|
@Inject public TransactionService(DistributedTransactionManager manager)
@Deprecated public void with(java.lang.String namespace, java.lang.String tableName)
DistributedTransactionManager
with
in interface DistributedTransactionManager
namespace
- default namespace to operate fortableName
- default table name to operate for@Deprecated public void withNamespace(java.lang.String namespace)
DistributedTransactionManager
withNamespace
in interface DistributedTransactionManager
namespace
- default namespace to operate for@Deprecated public java.util.Optional<java.lang.String> getNamespace()
DistributedTransactionManager
getNamespace
in interface DistributedTransactionManager
Optional
with the namespace@Deprecated public void withTable(java.lang.String tableName)
DistributedTransactionManager
withTable
in interface DistributedTransactionManager
tableName
- default table name to operate for@Deprecated public java.util.Optional<java.lang.String> getTable()
DistributedTransactionManager
getTable
in interface DistributedTransactionManager
Optional
with the table namepublic DistributedTransaction start() throws TransactionException
DistributedTransactionManager
start
in interface DistributedTransactionManager
DistributedTransaction
TransactionException
- if starting the transaction failedpublic DistributedTransaction start(java.lang.String txId) throws TransactionException
DistributedTransactionManager
start
in interface DistributedTransactionManager
txId
- an user-provided unique transaction IDDistributedTransaction
TransactionException
- if starting the transaction failed@Deprecated public DistributedTransaction start(Isolation isolation) throws TransactionException
DistributedTransactionManager
Isolation
level.start
in interface DistributedTransactionManager
isolation
- an isolation levelDistributedTransaction
TransactionException
- if starting the transaction failed@Deprecated public DistributedTransaction start(java.lang.String txId, Isolation isolation) throws TransactionException
DistributedTransactionManager
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.start
in interface DistributedTransactionManager
txId
- an user-provided unique transaction IDisolation
- an isolation levelDistributedTransaction
TransactionException
- if starting the transaction failed@Deprecated public DistributedTransaction start(Isolation isolation, SerializableStrategy strategy) throws TransactionException
DistributedTransactionManager
Isolation
level and SerializableStrategy
. If the isolation is not SERIALIZABLE, the serializable strategy is
ignored.start
in interface DistributedTransactionManager
isolation
- an isolation levelstrategy
- a serializable strategyDistributedTransaction
TransactionException
- if starting the transaction failed@Deprecated public DistributedTransaction start(SerializableStrategy strategy) throws TransactionException
DistributedTransactionManager
SerializableStrategy
.start
in interface DistributedTransactionManager
strategy
- a serializable strategyDistributedTransaction
TransactionException
- if starting the transaction failed@Deprecated public DistributedTransaction start(java.lang.String txId, SerializableStrategy strategy) throws TransactionException
DistributedTransactionManager
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.start
in interface DistributedTransactionManager
txId
- an user-provided unique transaction IDstrategy
- a serializable strategyDistributedTransaction
TransactionException
- if starting the transaction failed@Deprecated public DistributedTransaction start(java.lang.String txId, Isolation isolation, SerializableStrategy strategy) throws TransactionException
DistributedTransactionManager
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.start
in interface DistributedTransactionManager
txId
- an user-provided unique transaction IDisolation
- an isolation levelstrategy
- a serializable strategyDistributedTransaction
TransactionException
- if starting the transaction failedpublic TransactionState getState(java.lang.String txId) throws TransactionException
DistributedTransactionManager
getState
in interface DistributedTransactionManager
txId
- a transaction IDTransactionState
TransactionException
- if getting the state of a given transaction failedpublic TransactionState abort(java.lang.String txId) throws TransactionException
DistributedTransactionManager
abort
in interface DistributedTransactionManager
txId
- a transaction IDTransactionState
TransactionException
- if aborting the given transaction failedpublic void close()
DistributedTransactionManager
close
in interface DistributedTransactionManager