net.jini.core.transaction
Interface NestableTransaction
- All Known Implementing Classes:
- NestableServerTransaction
- public abstract interface NestableTransaction
- extends Transaction
Interface for classes representing nestable transactions returned by
NestableTransactionManager
servers for use with transaction
participants that implement the default transaction semantics.
- See Also:
Transaction
,
NestableTransactionManager
,
TransactionFactory
create
public NestableTransaction.Created create(NestableTransactionManager mgr,
long leaseTime)
throws UnknownTransactionException,
CannotJoinException,
LeaseDeniedException,
java.rmi.RemoteException
- Create a new nested transaction, with the current transaction as
parent, managed by the given transaction manager.
- Parameters:
mgr
- the transaction manager to use for this transactionleaseTime
- the requested lease time for the transaction- Returns:
- the created transaction and the lease granted
create
public NestableTransaction.Created create(long leaseTime)
throws UnknownTransactionException,
CannotJoinException,
LeaseDeniedException,
java.rmi.RemoteException
- Create a new nested transaction, with the current transaction as
parent, managed by the same transaction manager as the current
transaction.
- Parameters:
leaseTime
- the requested lease time for the transaction- Returns:
- the created transaction and the lease granted
Copyright © 1999 Sun Microsystems, Inc. All rights reserved