public interface NestableTransaction extends Transaction
NestableTransactionManager
servers for use with transaction
participants that implement the default transaction semantics.Transaction
,
NestableTransactionManager
,
TransactionFactory
Modifier and Type | Interface and Description |
---|---|
static class |
NestableTransaction.Created
Class that holds return values from create methods.
|
Modifier and Type | Method and Description |
---|---|
NestableTransaction.Created |
create(long leaseTime)
Create a new nested transaction, with the current transaction as
parent, managed by the same transaction manager as the current
transaction.
|
NestableTransaction.Created |
create(NestableTransactionManager mgr,
long leaseTime)
Create a new nested transaction, with the current transaction as
parent, managed by the given transaction manager.
|
abort, abort, commit, commit
NestableTransaction.Created create(NestableTransactionManager mgr, long leaseTime) throws UnknownTransactionException, CannotJoinException, LeaseDeniedException, RemoteException
mgr
- the transaction manager to use for this transactionleaseTime
- the requested lease time for the transactionUnknownTransactionException
- if the parent transaction
is unknown to the parent transaction manager, either
because the transaction ID is incorrect or because the
transaction is no longer active and its state has been
discarded by the manager.CannotJoinException
- if the parent transaction is known
to the manager but is no longer active.LeaseDeniedException
- if this manager is unwilling to
grant the requested lease timeRemoteException
- if there is a communication errorNestableTransaction.Created create(long leaseTime) throws UnknownTransactionException, CannotJoinException, LeaseDeniedException, RemoteException
leaseTime
- the requested lease time for the transactionUnknownTransactionException
- if the parent transaction
is unknown to the parent transaction manager, either
because the transaction ID is incorrect or because the
transaction is no longer active and its state has been
discarded by the manager.CannotJoinException
- if the parent transaction is known
to the manager but is no longer active.LeaseDeniedException
- if this manager is unwilling to
grant the requested lease timeRemoteException
- if there is a communication errorCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.