public class TransactionFactory extends Object
Modifier and Type | Method and Description |
---|---|
static NestableTransaction.Created |
create(NestableTransactionManager mgr,
long leaseTime)
Create a new top-level transaction, under which nested transactions
can be created.
|
static Transaction.Created |
create(TransactionManager mgr,
long leaseTime)
Create a new top-level transaction.
|
public static Transaction.Created create(TransactionManager mgr, long leaseTime) throws LeaseDeniedException, RemoteException
NestableTransaction
.mgr
- the transaction manager to use for this transactionleaseTime
- the requested lease time for the transactionLeaseDeniedException
- if this manager is unwilling to
grant the requested lease timeRemoteException
- if a communication error occurs.public static NestableTransaction.Created create(NestableTransactionManager mgr, long leaseTime) throws LeaseDeniedException, RemoteException
mgr
- the transaction manager to use for this transactionleaseTime
- the requested lease time for the transactionLeaseDeniedException
- if this manager is unwilling to
grant the requested lease timeRemoteException
- if a communication error occurs.Copyright © GigaSpaces.